Home Tools Blog About

Convert Unicode to Hex

In short

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

Type to begin.
🛡
100% PrivateNo server uploads, ever
InstantRuns in your browser
💧
No WatermarksClean output, always
🆓
Free ForeverNo accounts, no limits

How to Use Convert Unicode to Hex

  1. Paste your text. Anything Unicode. Codepoint iteration handles emoji and supplementary-plane characters correctly.
  2. Choose prefix. U+ for Unicode standard notation, 0x for C/JS hex literals, u{...} for JS ES2015 escapes, none for raw hex.
  3. Choose padding. 4-digit (BMP-fitting) is standard for Unicode docs. 6-digit accommodates full Unicode range. None for variable-width.
  4. Toggle case. Uppercase matches Unicode docs and most hex editors. Lowercase matches C/Rust source.
  5. Read the per-character grid. Char, U+XXXX, decimal, Unicode plane.
  6. 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.

Keep going

Related Tools

All Unicode tools →
Share

Embed this tool

Add this free tool to your website. Copy and paste the code: