Skip to content
TypeParser
All tools

Hex ↔ Text

Convert text to/from hex bytes.

beats rapidtables.com edge: UTF-8 + multiple separator styles
text
hex
style
Guide

About Hex ↔ Text

Convert text to hex bytes (UTF-8 encoded) and back. Pick a byte separator — none, space, comma, or 0x prefix. Useful when reading hex dumps, debugging serial output, or constructing byte literals for embedded code.

When you need hex

  • Embedded development — copying byte sequences into firmware
  • Wire-protocol debugging — packet captures show as hex
  • Cryptographic operations — keys, IVs, signatures live as hex
  • Reading dumps — log lines that print byte arrays

How the tool helps

Type text, see hex; paste hex, see text. UTF-8 the whole way through, so emoji and CJK round-trip cleanly.

Common workflows

Decode a packet capture. Paste the hex bytes, see the ASCII / UTF-8 string. Faster than launching Wireshark for a quick look.

Build a byte literal. Type your string, copy as 0x prefixed hex, paste into C / Python / Rust. Each byte becomes its language’s hex literal.

Inspect a key. Hex-encoded API key or signature — paste, see byte length. Compare against expected length (32 for SHA-256).

Construct a test fixture. Bytes go in your test as hex; the source string lives in a comment. The hex form is the canonical wire form.

Frequently asked questions

Why hex over binary?
4 bits per character vs 1. Same data, half the screen space, easier on the eyes. Most low-level tooling uses hex.
How is emoji encoded?
As UTF-8 bytes. 😀 (U+1F600) → F0 9F 98 80 (4 bytes). The hex output reflects the UTF-8 byte sequence.
What separators are supported?
None, space, comma, colon, hyphen, and 0x-prefixed (each byte gets a 0x prefix for C / Python literal style).
Case-sensitive?
Output defaults to lowercase. Toggle uppercase if your tool expects it. Decode accepts either.
Pad missing nibbles?
Yes. Each byte is two hex chars; we left-pad with zero if the input is malformed (odd number of digits triggers a warning).
For binary files?
Use this for inspecting/copy-pasting small byte sequences. For real binary file work, use Base64 or a hex editor.

Related tools

Last updated: 2025-01-15