Text to Binary, Hex and ASCII Codes and Back
Turn text into binary, hex or character codes and back.
A computer keeps text as numbers. This tool shows them: each byte of the text in UTF-8 (the way files and web pages store it; plain English letters are the same as ASCII, an accented letter takes two bytes, an emoji four), or each character’s Unicode number (its code point). Write them in binary, hexadecimal, octal or decimal, and paste codes to read them back: with spaces, commas or nothing between them, with or without 0x and 0b. It runs on your device.
How to use Text to binary
- Type text, or paste codes, into Text or codes.
- Choose Binary, Hex, Octal or Decimal under Written in, and the direction under Which way.
- Press Copy result to copy the codes or the text they spell.
Text to binary: common questions
Is it safe to convert text to binary online?
Hoglet’s Text to binary tool converts text, and reads codes back, in your browser on your device. Nothing is uploaded and it works offline.
Why does an accented letter take two bytes in binary?
Text to binary shows UTF-8 bytes at first, the way files and web pages store text: plain English letters take one byte, the same as ASCII, an accented letter two and an emoji four. Choose A character in Options to see code points instead.
How do I convert binary or hex back to text?
Paste the codes into Text to binary and it works out that they are codes and reads them back. They can be separated by spaces, commas or nothing, with or without 0x and 0b.
Everything stays on your device. Nothing is uploaded. Works offline once your first visit has stored the app.