Hex Encoder / Decoder
Encode text to hexadecimal or decode hex back to text.
How to convert text to hex
Paste your text or hex
Paste or type your text or hex into the box.
Choose the direction
Text to Hex, or Hex to Text.
Copy the result
Copy the result, or use it straight away.
When to use Hex Encoder / Decoder
You are reading raw data, a colour value or debugging output written in hexadecimal.
You want to see the bytes of a short text as hex digits.
Tips for a better Hex Encoder / Decoder result
Choose text to hex or hex to text, paste the input, and copy the result.
Remove spaces or 0x prefixes if decoding fails, since the tool expects plain hex digits.
Hex Encoder / Decoder: limits and what to check
Hex uses the digits 0 to 9 and the letters A to F, and each byte takes two characters.
For a more compact encoding, use Base64 instead.
About Hex Encoder / Decoder
Convert text to hexadecimal and back. It is useful when you work with raw data, colour values or debugging output.
FAQs
What is hex?
A way of writing data using the digits 0 to 9 and the letters A to F.
Can I use Base64 instead?
Use Base64 Encoder / Decoder.