Skip to content
snip tools

Hex encode and decode

Convert text to hexadecimal bytes or decode hex back to text. Runs in your browser.

Runs 100% in your browser

How to convert text and hex

  1. Choose a mode. Encode for text → hex, or Decode for hex → text.
  2. Enter your data. Paste text or hex bytes; the result appears instantly.
  3. 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

What does this hex converter do?
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.
What hex formats can it decode?
It is forgiving: spaces, newlines, commas and 0x prefixes are ignored, so 48 65 6c 6c 6f, 0x48,0x65 and 48656c6c6f all decode correctly.
Does it handle Unicode?
Yes. Text is treated as UTF-8, so multi-byte characters encode to multiple hex bytes and decode back exactly.
Is anything uploaded?
No. The conversion runs locally in your browser.