Text to Hex Converter
Free online text to hex converter. Convert any text to hexadecimal (UTF-8 bytes) with a space, no separator, or 0x-array output format. Runs 100% in your browser.
Why represent text as hexadecimal?
Hexadecimal is the compact, human-manageable way to write bytes: one byte is exactly two hex digits, so 'Hello' becomes 48 65 6c 6c 6f. Developers meet hex everywhere bytes are inspected — network packets, file headers, cryptographic hashes, memory dumps and escape sequences like \x48.
The 0x-array output mode produces ready-to-paste byte arrays for C, C++, Rust and Arduino code — a small feature that saves embedded developers real time.
How to use
- 01Type or paste your text into the input box.
- 02Pick an output style: spaced pairs, continuous, or a 0x-prefixed array.
- 03Click Convert to hex.
- 04Copy or download the hexadecimal output.
Frequently asked questions
- What is hexadecimal encoding used for?
- Hex is a compact way to represent binary data. Developers use it for byte inspection, color codes, network packets, checksums and embedded programming.
- What does the 0x array format do?
- It outputs bytes as 0x48, 0x65, … — ready to paste directly into C, C++, Rust or Arduino source code as a byte array.
- Is my text private?
- Yes. Encoding happens in your browser using TextEncoder — no uploads.