Unicode converter online

Turn text into Unicode code points (U+0041), JavaScript escapes, HTML entities or UTF-8 bytes, and decode them back again. This Unicode converter works by code point, so an emoji counts as one character and runs in your browser.

  • Free
  • No sign-up
  • Runs in your browser

Runs in your browser — your text is never sent to our servers.

How to use Unicode Converter

  1. Open the "Text to Unicode" tab to encode, or "Unicode to text" to decode, and type or paste into "Input".
  2. When encoding, pick a "Format" such as Code points, JavaScript escapes, ES6 escapes, HTML hex entities, HTML decimal entities or UTF-8 bytes (hex).
  3. Tick "Keep plain ASCII letters as they are (escapes and entities only)" or "Lowercase hex digits" if you need them.
  4. Read the result in "Output" and the counts line, then press "Copy" or "Download".

Features

  • Six output formats - code points, JavaScript escapes, ES6 escapes, HTML hex entities, HTML decimal entities and UTF-8 bytes
  • Works by code point, so emoji are one character and JavaScript escapes use surrogate pairs above U+FFFF
  • Decoding finds U+XXXX, \uXXXX, \u{X}, &#xHH; and &#DD; anywhere in the text
  • Surrogate pairs written as two \u escapes are joined back into one character
  • Option to keep plain ASCII letters readable in escapes and entities
  • Option for lowercase hex digits
  • Counts shown for the conversion, with Copy and Download
  • Handles up to 200,000 characters, and nothing is uploaded

Supported formats and limits

  • Maximum input: 200,000 characters

Examples

InputResult
Aé😀U+0041 U+00E9 U+1F600 — Format: Code points.
Aé😀Aé😀 — Format: JavaScript escapes. The emoji is written as a surrogate pair.
Aé😀\u{41}\u{E9}\u{1F600} — Format: ES6 escapes.
Aé😀Aé😀 — Format: HTML hex entities. HTML decimal entities give Aé😀.
Aé😀41 C3 A9 F0 9F 98 80 — Format: UTF-8 bytes (hex). The accented letter takes 2 bytes and the emoji 4.
U+0048 U+0069Hi — "Unicode to text" tab, which detects the notation automatically.

Limitations

  • It does not look up character names or properties from the Unicode database.
  • It does not normalize text (NFC or NFD), so a letter with a separate accent stays as two code points.
  • Code points above U+10FFFF are reported as errors, and a lone surrogate is replaced by U+FFFD.
  • Decoding UTF-8 bytes needs the "UTF-8 bytes" format selected and hex values from 00 to FF separated by spaces.
  • Input is limited to 200,000 characters.

Learn more

Unicode gives every character a number called a code point, written U+ followed by hexadecimal digits: A is U+0041 and the grinning face emoji is U+1F600. Code points run from U+0000 to U+10FFFF. Unicode itself only assigns the numbers; how they are stored is a separate choice called an encoding.

UTF-8 is the most common encoding on the web. It stores a code point in one to four bytes and keeps ASCII characters as single bytes, as RFC 3629 defines. UTF-16, used by JavaScript strings, stores most characters in one 16-bit unit. Characters above U+FFFF need two units, called a surrogate pair, which is why an emoji appears as 😀 in a classic JavaScript escape.

Escapes let you write any character using only ASCII. JavaScript uses A or \u{41}. HTML uses numeric references such as A or A. The same code point gives the same character in each, so this page shows the notations side by side and converts them in both directions.

Frequently asked questions

How do I convert text to Unicode code points?

Choose "Text to Unicode", select the Code points format and type your text. Each character appears as U+ followed by its hex number, such as U+0041 for A.

How do I decode \u escapes back to text?

Open "Unicode to text" and paste the escapes. The tool detects \uXXXX, \u{X}, U+XXXX and HTML numeric entities, and leaves other text unchanged.

Why does an emoji become two \u escapes?

JavaScript strings use 16-bit units, so characters above U+FFFF are written as a surrogate pair. The ES6 format, such as \u{1F600}, uses a single escape.

What is the difference between Unicode and UTF-8?

Unicode assigns each character a code point. UTF-8 is one way to store those code points as bytes, using 1 to 4 bytes per character.

Sources

Last reviewed: September 30, 2026