Convert Unicode to Hex
Convert Unicode to hex codepoints with prefix/padding/case options (and back). Per-character breakdown. Free, offline, client-side, instant, secure.
- Runs in your browser
- Nothing uploaded
- Free, no sign-up
Convert Unicode characters to hex codepoints with configurable case, padding (none / 4-digit BMP / 6-digit full Unicode), and prefix (U+ / 0x / \u / none). Reverse direction parses any common hex format back to text.
Per-character breakdown
How to Use Convert Unicode to Hex
- Paste your text. Anything Unicode. Codepoint iteration handles emoji and supplementary-plane characters correctly.
- Choose prefix.
U+for Unicode standard notation,0xfor C/JS hex literals,u{...}for JS ES2015 escapes, none for raw hex. - Choose padding. 4-digit (BMP-fitting) is standard for Unicode docs. 6-digit accommodates full Unicode range. None for variable-width.
- Toggle case. Uppercase matches Unicode docs and most hex editors. Lowercase matches C/Rust source.
- Read the per-character grid. Char, U+XXXX, decimal, Unicode plane.
- Swap to decode. Parses U+, 0x, u, or raw hex - all common prefixes auto-stripped.
Frequently Asked Questions
Why use hex vs decimal codepoints?
Hex is denser (4-6 digits vs up to 7 digits decimal) and groups by bytes – easier for spotting character ranges. The Unicode standard documents codepoints as hex (U+0041). Decimal is friendlier for code that does arithmetic on codepoints.
What’s the U+ prefix for?
The official Unicode standard notation. U+0041 means “Unicode codepoint hex 41” = A. The U+ makes it unambiguous you’re talking about Unicode, not just hex bytes.
Should I use 4-digit or 6-digit padding?
4-digit (default) handles 99% of cases – every BMP character (U+0000 through U+FFFF) fits in 4 hex digits. 6-digit accommodates emoji and other supplementary-plane characters that need 5-6 digits. Mixed-width works too with “None” padding.
How does reverse decoding handle different prefixes?
It strips common prefixes (U+, 0x, u, u{...}) automatically, then parses the remaining hex digits. So U+41, 0x41, A, u{41}, and raw 41 all decode to A.
Emoji handled correctly?
Yes. for…of iteration + String.fromCodePoint handle supplementary-plane characters (emoji) without surrogate pair issues.
Maximum codepoint?
U+10FFFF (1,114,111 decimal). Above is invalid Unicode and rejected.
How is this different from the codepoint converter?
The codepoint converter supports 7 output formats (HTML/CSS/JS/Python escapes). This tool focuses on hex with prefix/padding/case options. Use this when you specifically need hex output for a target syntax.
Is my data uploaded?
No. Zero network requests. All conversion in browser.
Works offline?
Yes. 16 KB total. Load once, disconnect, use forever.
Can I use this for HTML entity codes?
Indirectly – pick 0x prefix, 4-digit padding, lowercase, then prepend &#x and append ; in your code. Or use the dedicated codepoint converter for direct HTML entity output.
Related Tools
Center Unicode Text →
Center Unicode text within a fixed width, with real grapheme counting for emoji and…
Check Spoofed Unicode Text →
Detect Unicode confusables and homoglyphs from Cyrillic, Greek, Armenian, and Hebrew that imitate Latin…
Chunkify Unicode Text →
Split Unicode text into equal chunks with grapheme, code-point, or UTF-16 modes. Keeps emoji…
ASCII to Unicode Converter →
ASCII to Unicode & Decode decimal, hex, octal, or U+XXXX values to Unicode characters…
Convert Code Points to Unicode →
Convert Code Points to Unicode (U+XXXX, hex, decimal) to characters - handles emoji, CJK,…
Convert Unicode to ASCII →
Convert Unicode to ASCII with transliteration (é → e, ñ → n), replace, or…
Convert Unicode to Base64 →
Encode Unicode text to Base64 (and decode) with standard, URL-safe, MIME variants. UTF-8 proper.…
Convert Unicode to Binary →
Convert Unicode to binary in 3 modes (UTF-8, codepoint, UTF-16). Per-character breakdown. Free, offline,…
Convert Unicode to Bytes →
Convert Unicode to UTF-8 bytes in hex, decimal, or binary. Per-byte grid, reverse direction.…
Convert Unicode to Code Points →
Convert Unicode to code points (U+XXXX, HTML/CSS/JS escapes) and back. Per-character breakdown. Free, offline,…
Convert Unicode to Data URL →
Convert Unicode to data URLs with base64 or URL-encoding, 12 MIME types, charset toggle.…
Convert Unicode to Decimal →
Convert Unicode text to decimal code point values.