Hexspeak Word Encoder

Write messages using hex-readable words: DEADBEEF, CAFEBABE

Ad placeholder (leaderboard)

Hexspeak is a programmer in-joke: spelling words using only hexadecimal digits so they can double as memorable magic numbers in code. DEADBEEF, CAFEBABE, BAADF00D and 0xC0FFEE are all real constants that have been used to mark uninitialised memory or tag file formats. This tool turns your words into hexspeak and tells you whether the result is genuinely valid hex.

How it works

Hexadecimal uses sixteen symbols: the digits 0 to 9 and the letters A to F. The letters a through f map straight onto themselves. For the rest, hexspeak relies on visual lookalikes. This tool applies the common substitutions: i and l become 1, o becomes 0, s becomes 5, t becomes 7, z becomes 2, and g becomes 6. Existing digits in your input are kept as-is.

After substitution the tool checks whether every character in the word is a valid hex digit. If so, the word is a true hexadecimal number, and the tool also shows its decimal value by interpreting the string as base 16. Letters with no hex lookalike — h, j, k, m, n, p, q, r, u, v, w, x, y — are kept visible but flagged, since they break hex validity.

Examples and notes

dead  -> DEAD      valid hex (= 57005)
beef  -> BEEF      valid hex (= 48879)
cafe  -> CAFE      valid hex (= 51966)
goose -> 60052     valid hex (= 393298)
hello -> HE110     not valid hex (can't map: h)

Hexspeak is mainly for fun and for naming memorable constants, but it is also a neat way to see which English words happen to be expressible in base sixteen. Everything runs locally in your browser.

Ad placeholder (rectangle)