Unicode Encode/Decode
Convert between text and Unicode code point notation (U+, &#x, &#, 0x) in real time. Choose output format in Encode; formats are auto-detected and can be mixed in Decode.
Format and usage
This tool supports U+XXXX, &#xXXXX; (hex), &#DDDD; (dec), and 0xXXXX. In Encode mode you can choose the output format; in Decode mode these are auto-detected and can be mixed. In Decode mode, U+ / &# / 0x insert buttons appear in the input header. Maximum input length is 10,000 characters.
How to use
About this tool
Converts between text and Unicode code point notation in real time. Supports U+XXXX, &#xXXXX; (hex), &#DDDD; (dec), and 0xXXXX. In Encode you choose the output format; in Decode formats are auto-detected and can be mixed. All processing is done in the browser.
How to use
Encode: Choose output format (U+ / &#x / &# / 0x) and type or paste text. Decode: Type or paste U+, &#x, &#, or 0x notation (mixed is OK). Results update immediately and can be copied. In Decode mode, the U+ / &# / 0x buttons in the input header insert each prefix at the cursor.
Options
Encode: Choose U+XXXX, &#xXXXX; (hex), &#DDDD; (dec), or 0xXXXX. Decode: Auto-detects U+, &#x;, &#;, and 0x; mixed input is allowed. U+ / &# / 0x insert buttons in the input header (Decode only). Maximum input: 10,000 characters.
Use cases
• Inspecting and converting Unicode code points • Decoding U+XXXX notation in fonts and specs • Creating code point notation for docs and comments • Checking code points for emoji and surrogate pairs
Privacy and data
Conversion is done in the browser; input and results are never sent to a server.
FAQ
- Q: What output formats are supported in Encode mode?
- A: Four formats: U+XXXX (Unicode standard notation), &#xXXXX; (HTML hex entity), &#DDDDD; (HTML decimal entity), and 0xXXXX (hex prefix commonly used in code).
- Q: Can I mix different notation formats in Decode mode?
- A: Yes. In Decode mode the tool auto-detects U+, &#x, &#, and 0x notations and can handle them mixed in the same input.
- Q: What is the maximum input length?
- A: Up to 10,000 characters. For larger inputs, split them into multiple chunks.
- Q: How are emoji and supplementary characters handled?
- A: Emoji and other characters outside the Basic Multilingual Plane (code points above U+FFFF) are represented as surrogate pairs in environments that require them. The tool shows their actual Unicode code points (e.g., U+1F600 for 😀).
- Q: Does this tool send my data to a server?
- A: No. All encoding and decoding runs entirely in the browser. No data is sent to any server.
