Text to Unicode Converter — Free Unicode Encoder & Decoder Online
Free text to Unicode converter. Encode text as U+ code points, HTML entities, JavaScript, ES6, Python or CSS escapes, decode any Unicode escape back to text ...
To convert text to Unicode, type it into the Text to Unicode box and choose an output format such as code points or HTML entities; paste escapes into Unicode to Text to decode them.
Last updated:
Text to Unicode Converter — Free Unicode Encoder & Decoder Online. Free text to Unicode converter. Encode text as U+ code points, HTML entities, JavaScript, ES6, Python or CSS escapes, decode any Unicode escape back to text and inspect every character.
Our free text to Unicode converter turns any text into the exact Unicode representation you need.
Type or paste a word, a sentence, accented letters, Chinese characters or emoji and choose an output format: HTML decimal entities (A), HTML hex entities (A), Unicode code points (U+0041), JavaScript/JSON \u0041 escapes with correct surrogate pairs, ES6 code point escapes, Python \U0001F600 escapes, CSS escapes or plain decimal numbers.
Emoji and other characters outside the Basic Multilingual Plane are handled as single code points, so 😀 becomes U+1F600 or 😀 rather than two broken halves.
The Unicode decoder works the other way round and recognises every supported format automatically — even mixed together inside normal text — so you can paste an HTML snippet, a JSON string or a list of code points and read the result instantly.
Tick “keep ASCII” to escape only special characters and leave plain letters readable, which is ideal for HTML templates, JSON files and source code.
The character table lists each character with its code point, decimal value, UTF-8 bytes and HTML entity, making the tool a quick Unicode lookup for debugging encoding problems, mojibake and invisible characters.
For named HTML entities use our HTML Encode & Decode tool, and for backslash escaping of whole strings try String Escape / Unescape.
All conversion happens locally in your browser, so localisation files, API payloads and private messages never leave your device.
Load the sample, copy the result with one click, send the output straight to the decoder to verify a round trip, or share a link that restores your text and chosen format.
Related converters: Text to Binary Converter, Hex to ASCII Converter, URL Encoder & Decoder and Emoji Picker.
Frequently asked questions
How do I convert text to Unicode code points?
Select Code point under Output format and type your text into the Text to Unicode box. Each character is shown as U+ followed by its hex value, separated by spaces, so Hi becomes U+0048 U+0069. Click Copy unicode to clipboard to copy the result.
Which Unicode formats are supported?
Eight: HTML decimal entities (the default), HTML hex entities, Code point (U+0041), JavaScript / JSON escapes, ES6 code point escapes, Python escapes, CSS escapes and plain Decimal numbers. Each format button shows a small example of its output.
How do I decode Unicode escapes back to text?
Paste the encoded text into Enter unicode to convert to text. The decoder recognises HTML decimal and hex entities, U+ code points, backslash-u escapes with or without braces, Python backslash-U escapes, CSS escapes and space- or comma-separated decimal numbers, even when mixed with normal text.
What does Keep ASCII letters and symbols do?
When ticked, printable ASCII characters (letters, digits, spaces and basic punctuation) stay as they are and only other characters, such as accented letters, symbols and emoji, are escaped. It is not available for the Code point and Decimal formats, which always encode every character.
What does the Character details table show?
For each character of your input it lists the character, its code point, decimal value, UTF-8 bytes in hex and HTML decimal entity, for up to the first 200 characters. It is handy for spotting invisible characters or checking how an emoji is encoded.
Why does an emoji become two escapes in JavaScript format?
JavaScript and JSON strings store text as UTF-16, so characters above U+FFFF, including most emoji, are written as a surrogate pair of two backslash-u escapes. Choose ES6, Python, HTML or Code point if you want one escape per emoji.
How to use this online tool
Text to Unicode Converter — Free Unicode Encoder & Decoder Online is designed for fast browser workflows when you need to format, validate, convert, decode, encode, generate, or inspect data without opening a heavy desktop app. Start with the input field or visible options, review the result, then copy or download the output for the next step.
Private processing in your browser
Text to Unicode Converter — Free Unicode Encoder & Decoder Online keeps the normal processing step local in your browser. That is useful for code snippets, tokens, documents, configuration values, text samples, and other material that should not be sent to a remote service unless you explicitly choose to share it.
When this tool is useful
Use Text to Unicode Converter — Free Unicode Encoder & Decoder Online for repeatable developer tasks, technical documentation, QA checks, quick conversions, debugging, content cleanup, and internal team workflows. The page focuses on clear inputs, immediate feedback, and output that is easy to reuse in code, reports, tickets, emails, or notes.
Practical tips
Before copying the final result, check important details such as spacing, casing, filenames, encoding, token structure, line breaks, or output format. Small checks prevent mistakes when the result is reused in source code, API requests, documentation, spreadsheets, or shared files.