Hex ↔ ASCII Converter
Convert text to hexadecimal bytes or decode a hex string back to readable ASCII text.
100% client-side · no upload
What is hex encoding?
Every character in a string has a numeric code point. Hex encoding writes that code point as a two-digit
hexadecimal number (base 16, using 0–9 and A–F). "Hello" encodes to 48 65 6C 6C 6F. Hex
is commonly used when displaying binary data (checksums, memory addresses, colour codes) in a compact
and readable form.
How to use
- To encode: type plain text and click Text → Hex.
- To decode: paste hex bytes (with or without spaces) and click Hex → Text.
- Choose the separator format before encoding.
Related tools: Binary ↔ Text, Base32 Encoder, Base64 Encoder
常见问题
- What is hex encoding?
- Hexadecimal encoding represents each byte of a string as two hex digits (0–9 and A–F). For example, the letter "A" has ASCII code 65 decimal, which is 41 in hexadecimal. Hex is widely used in programming for displaying binary data in a human-readable form.
- Does my data leave my device?
- No. The hex conversion runs entirely in your browser as pure JavaScript.
- Does it work on mobile?
- Yes. The output updates instantly as you type in any modern mobile browser.