🔣

Unicode Encoder/Decoder

Bidirectional conversion between text and Unicode (\uXXXX, HTML entities) with auto-detection and ASCII preservation.

Input Content

Output Result

Character Mapping(Only show first 20 characters)

Original ContentConverted Result
No Data

Usage Guide

  • 1. In auto mode, enter text or Unicode encoding to convert automatically, or force encode/decode manually.
  • 2. Supported Unicode formats: \uXXXX, \UXXXXXXXX, \u{XXXX}, &#xXXXX;, &#XXXX;.
  • 3. When encoding, you can keep ASCII characters (letters/numbers/symbols) for better readability.
  • 4. The character mapping table shows up to 20 unique characters for quick reference.
  • 5. Invalid code points stay unchanged so one bad token does not break the whole result.
  • 6. Click "Copy" to copy results, or "Clear" to reset all fields.

About This Tool

A comprehensive Unicode encoding/decoding tool. It supports standard BMP characters (\uXXXX), extended plane \UXXXXXXXX formats (like Emojis), and common HTML entity encodings (&#xXXXX; and &#XXXX;). With smart detection, it automatically switches between encode and decode modes. During encoding, you can optionally preserve ASCII characters for better readability. It also generates a detailed mapping table for the first 20 characters. All processing is done locally in your browser for maximum privacy.

Features

  • ⚡ Real-time: Instant conversion results
  • 🤖 Smart Detection: Auto-detect encode/decode mode
  • 🌐 Multi-format: Supports \uXXXX, \UXXXXXXXX, &#xXXXX;, &#XXXX;
  • 😀 Extended Support: Handles Emojis and surrogate pairs perfectly
  • 🔤 ASCII Preservation: Optionally keep letters, numbers, and symbols during encoding
  • 📊 Mapping Table: Detailed preview for the first 20 characters
  • 🔒 Privacy: All processing done locally on your device