Text to hexadecimal converter
Type or paste text and see its bytes in hexadecimal: Hello becomes 48 65 6C 6C 6F.
How it works
-
Paste your text
Type or paste the text in the left box, or open a .txt file. No text to hand? Click Example.
-
Instant result
The result appears as you type. Change the options and see straight away what changes.
-
Copy or download
Copy the result with one click, save it as a file or use it as input for a next step.
Options
- Separator: a space, nothing at all (
48656C6C6F) or a colon (48:65:6C:6C:6F). - Letters: capitals
A–For lowercasea–f. - With 0x in front:
0x48 0x65 0x6C …, ready for use in code.
The text is encoded as UTF-8, so é gives two bytes (C3 A9) and an emoji gives four. The note shows the total number of bytes.
Going back
Use hexadecimal to text to read hex again. For the same bytes in binary, use text to binary. To hash text rather than encode it, use the hash generator.
Frequently asked questions
Is the text to hex free?
Yes. The text to hex is completely free, with no account, sign-up or usage limit.
Is my text stored?
No. Your text is processed in your browser and is not sent to a server or stored.
Is there a maximum length?
No, there is no fixed limit. Very long texts can just be a little slower.