Hex Converter
Convert text, hex, and decimal in both directions.
Example
- In:
- Certoflow
- Out:
- 436572746f666c6f77
Select a mode and enter input to convert.
Guide
Introduction
Hexadecimal notation compresses binary data into human-readable form: two characters represent one byte, using digits 0–9 and letters A–F. Network engineers read packet captures in hex. Frontend developers write colors as #RRGGBB. Firmware teams document memory maps at hex addresses. When you need to translate between hex strings, plain text, and decimal numbers quickly, a dedicated converter beats mental arithmetic every time.
Certoflow's Hex Converter supports four conversion modes in one interface, all running client-side without sending your data anywhere.
What this tool does
| Mode | Input | Output |
|---|---|---|
| Text → Hex | Certoflow | 436572746f666c6f77 |
| Hex → Text | 48656c6c6f | Hello |
| Decimal → Hex | 255 | ff |
| Hex → Decimal | FF | 255 |
Optional delimiters (space, colon) format hex dumps like network analyzers display. Uppercase toggle matches conventions in datasheets and AMD/Intel documentation.
How it works
Text to hex: UTF-8 bytes via TextEncoder, each byte rendered as two hex digits.
Hex to text: Pairs of hex digits → bytes → UTF-8 decode via TextDecoder. Odd-length input rejected with explicit error.
Decimal ↔ hex: JavaScript integer parsing with bounds validation. Hex output uses uppercase when toggled.
Validation prevents silent corruption — invalid hex never produces partial Unicode replacement characters without warning.
Real-world examples
Debugging a REST API charset issue
Response body hex dump shows:
7b226572726f72223a66616c73657d
Hex → Text reveals {"error":false} — confirming UTF-8 JSON, not compressed data.
CSS color channel inspection
Color #FF5733 breaks into bytes:
FF = 255 (red)
57 = 87 (green)
33 = 51 (blue)
Decimal → Hex helps when adjusting channels programmatically.
Serial protocol documentation
Device manual specifies command prefix 0xAA 0x55. Text → Hex with space delimiter verifies your constructed command string before flashing firmware.
Hash prefix identification
Blockchain and Git objects reference hex prefixes (sha256:abc123...). Hex → Decimal on the first byte sometimes identifies object type enums in custom binary formats.
Common mistakes
Odd-length hex strings. Each byte requires two nibbles. A1B fails validation — likely missing a leading zero (0A1B vs A1B0 confusion).
Confusing hex encoding with hex numeric value. The string "FF" as text encodes to 4646 (ASCII bytes for F and F), not the byte value 255. Select the correct mode.
Using hex to text on compressed data. Gzip magic bytes 1f8b decode to non-printable characters. Expect control symbols or decode errors.
Ignoring UTF-8 multibyte sequences. Emoji 😀 encodes to four hex bytes (f0 9f 98 80). Single-byte assumptions break on international text.
Mixing uppercase conventions in case-sensitive systems. Linux filenames and some hashes treat a and A differently. Standardize before comparison.
Use cases
| Profession | Application |
|---|---|
| Backend developer | Decode logged byte arrays |
| Embedded engineer | Verify UART hex commands |
| Security analyst | Inspect malware shellcode snippets |
| Student | Complete networking lab assignments |
| Designer | Calculate hex from RGB decimal values |
Hex vs Base64 vs Binary: when to use which
| Format | Density | Human readable | Typical context |
|---|---|---|---|
| Hex | 2 chars/byte | Moderate | Dumps, colors, addresses |
| Base64 | 1.33 chars/byte | Low | HTTP, JSON transport |
| Binary | 8 chars/byte | Poor | Teaching, bit flags |
Chain tools: hex dump → Binary Translator for bit patterns → Base64 Encode for API transport.
Related cluster tools
Binary Converter handles whole-number base conversion (255 ↔ 11111111 ↔ FF). UUID Generator output contains hex digits — inspect segments here. Base64 Encode follows when hex-confirmed bytes must travel in JSON.
Endianness and byte order awareness
When hex dumps come from little-endian systems (x86), word order may appear reversed relative to big-endian network diagrams. This converter operates on byte sequences as written — confirm endianness in source documentation before interpreting multi-byte values.
Color workflow integration
Frontend developers converting RGB decimal channels to hex for CSS custom properties:
RGB(255, 87, 51) → channel hex: FF, 57, 33 → #FF5733
Use decimal → hex mode per channel, then assemble the CSS hex triplet manually or in your stylesheet preprocessor.
Memory dump alignment
Hex dumps from debuggers often include address columns and ASCII gutters. Strip non-hex columns before pasting into hex-to-text mode. Addresses like 0x7fff5fbff8a0 are memory locations, not payload — including them corrupts decode output.
Wireshark and tcpdump export formats vary — export as "hex dump" plain text when possible rather than screenshotting, which introduces OCR errors into hex strings.
Summary
Hex Converter is the Rosetta Stone between human-readable text, hexadecimal dumps, and decimal numeric values — three representations developers juggle daily. Keep it open during log analysis sessions where terminal xxd is one context switch too far.
Frequently Asked Questions
- What is hex encoding used for?
- Hexadecimal represents bytes as two characters per byte (0-9, a-f). Developers use it in memory dumps, network packet captures, hash displays, and color codes like #FF5733.
- Why must hex strings have an even length?
- Each byte requires exactly two hex digits. An odd-length string cannot map cleanly to bytes and usually indicates a missing leading zero or truncated copy.
- Can I add separators between bytes?
- Yes. Choose space or colon delimiters when converting text to hex, producing output like 43 65 72 or 43:65:72 similar to xxhd output.
- Does hex to text support UTF-8?
- Yes. Multi-byte UTF-8 sequences decode correctly when the hex represents valid UTF-8 bytes.
- How is this different from the Binary Converter?
- Hex Converter handles string encoding and single-value decimal conversion. Binary Converter translates whole numbers between numeric bases (binary, octal, decimal, hex).
Related Tools
Continue with these related utilities.
Binary Converter
Convert numbers between binary, octal, decimal, and hex.
Developer ToolsBinary Translator
Convert text to binary and binary to text.
Developer ToolsUUID Generator
Generate UUID v4 identifiers securely in the browser.
Developer ToolsGUID Generator
Generate random GUIDs with bulk and formatting options.
Developer ToolsBase64 Encode
Encode text to Base64 with UTF-8 support.