Text to Binary, Hex & Unicode
Convert text to and from hex bytes, binary, decimal, octal, \u escapes and U+ code points, with a table of every character.
Runs in your browser. Nothing leaves this device.
Open Text to Binary, Hex & Unicode
Free, no account, no watermark and no daily limit.
How to use Text to Binary, Hex & Unicode
- 1Pick Text to code or Code to text, then the format.
- 2Type or paste. The result updates as you type.
- 3Copy the result, or read the table to see each character’s code point, bytes and type.
Questions
Which bytes does hex use?
UTF-8, the encoding the web uses. Plain letters take one byte, accented letters two, and most emoji four. Binary and octal use the same bytes.
What does decimal show?
The character code of each character. For plain English text these are the familiar ASCII codes, such as 65 for A.
Why does an emoji become two \u escapes?
JavaScript and JSON store text as UTF-16, where characters beyond U+FFFF take two units, called a surrogate pair. Decoding also accepts the \u{1F600} form.
Is my text sent anywhere?
No. Everything runs in your browser.
Is it free?
Yes. No account, no watermark and no daily limit.
Related tools
- DeveloperBase64 EncoderEncode text or files to Base64 and decode it back, with URL-safe and data URL options.
- DeveloperDiff CheckerCompare two texts and see what was added and removed, line by line or word by word, and download a patch.
- DeveloperHash GeneratorGet the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or any file, and check it against a hash you were given.
- DeveloperJSON FormatterFormat, check and minify JSON, with the exact line of any error.
- DeveloperJWT DecoderRead the header and claims of a JSON Web Token, see when it expires, and check an HMAC signature.
- DeveloperRegex TesterTest JavaScript regular expressions live: every match highlighted, capture groups in a table, and a replace preview.