Hex encode and decode
Convert text to hexadecimal bytes or decode hex back to text. Runs in your browser.
Runs 100% in your browserHow to convert text and hex
- Choose a mode. Encode for text → hex, or Decode for hex → text.
- Enter your data. Paste text or hex bytes; the result appears instantly.
- Copy the result. Click Copy to grab the output.
About hexadecimal encoding
Hexadecimal represents each byte as two digits (00–FF), making binary data readable and compact. Developers reach for hex when inspecting raw bytes, debugging protocols, reading hashes, or working with color and memory values. This converter treats text as UTF-8 and accepts loosely formatted hex input so you can paste from almost anywhere.
Frequently asked questions
- It converts text to its hexadecimal byte representation and back. Encode turns each UTF-8 byte into a two-digit hex value; Decode reads hex bytes back into text.
- It is forgiving: spaces, newlines, commas and
0xprefixes are ignored, so48 65 6c 6c 6f,0x48,0x65and48656c6c6fall decode correctly. - Yes. Text is treated as UTF-8, so multi-byte characters encode to multiple hex bytes and decode back exactly.
- No. The conversion runs locally in your browser.