Hex Encoder

Type or paste any text to instantly see its hexadecimal representation, with options for uppercase, spacing, and prefix.

Input Text

Options

Hex Output

0 bytes

Common ASCII → Hex

Space0x20
A0x41
a0x61
00x30
Z0x5A
z0x7A
LF0x0A
CR0x0D
NUL0x00

Summary

Type or paste any text to instantly see its hexadecimal representation, with options for uppercase, spacing, and prefix.

How it works

  1. Type or paste your text into the input area.
  2. The tool encodes each character to its UTF-8 bytes.
  3. Each byte is displayed as a two-digit hexadecimal value.
  4. Toggle uppercase/lowercase, byte separators, or the 0x prefix to match your target format.
  5. Click "Copy Output" to copy the result to your clipboard.

Use cases

  • Inspect byte-level content of strings while debugging protocols.
  • Prepare hex payloads for network packet crafting.
  • Convert file magic bytes or binary signatures to readable hex.
  • Encode strings for hex literals in source code or SQL.
  • Verify encoding of special characters and multi-byte Unicode.
  • Generate hex color-code representations for learning purposes.

Frequently Asked Questions

Last updated: 2026-06-09 · Reviewed by Nham Vu