tools/encode/hex encoder
// encodenew

hex encoder

string ↔ hex bytes, choose encoding

// client-only — paste text on the left
// hex appears here

// about this tool

The hex encoder converts text to its hexadecimal byte representation using the TextEncoder API, defaulting to UTF-8. Each byte becomes a two-character hex pair. The decoder reverses the process, reading pairs of hex digits and converting them back to the original string. Options let you control the byte separator and letter case.

// when to use

  • Inspect the raw UTF-8 byte sequence of a string containing Unicode or emoji
  • Prepare hex-encoded data for low-level protocols or binary file headers
  • Decode a hex dump from a network trace or memory inspector
  • Verify how many bytes a specific Unicode character occupies in UTF-8

// faq

What encoding does this use?
UTF-8 by default, which encodes ASCII characters as one byte and most other Unicode characters as two to four bytes. The byte count shown will differ from the character count for non-ASCII input.
What separator should I use?
Space-separated ("48 65 6c 6c 6f") is the most readable format and matches most hex dump tools. No separator is useful when you need a compact hex string for embedding in code.
// history
Pro Cloud Sync — upgrade
no operations yet