Base36 to Hex Converter

Paste a Base36 string into the Base36 Input field and the Base36 to Hex Converter works out its hexadecimal equivalent. Click Convert, and the result appears in Hex Output — flip on uppercase if you want capital A-F. Run the hex to rgba converter before writing a stylesheet to make sure your transparency channel matches the intended design opacity.

What Is Base36 to Hex Conversion?

Base36 to hex conversion is the process of taking a number written in base-36 — the numeral system that uses all ten digits (0-9) plus all 26 letters (A-Z) as its 36 symbols — and re-expressing that same numeric value in base-16 (hexadecimal), which uses only 16 symbols (0-9 and A-F). Both are positional numeral systems: every character's contribution to the total value depends on its position and the base it's raised to the power of. Because a single base-36 character can represent any value from 0 to 35 while a hex character only reaches 15, a base-36 string is almost always shorter than the equivalent hex string — which is exactly why base-36 shows up in URL shorteners and ID generators in the first place. The utf-8 hex to text converter decodes a run of UTF-8 byte values back into readable text, correctly reassembling multi-byte characters as it goes.

  • Base-36 characters used: 0-9 (values 0-9) and A-Z (values 10-35), case-insensitive
  • Hexadecimal characters used: 0-9 and A-F (values 0-15)
  • Typical base36 examples: 1Z, ABC123, ZZZZZZ
Infographic showing how to convert Base36 abc123 to hex: expand each digit by its place value to get decimal 623698779, then divide repeatedly by 16 to get hex 252ce35b
Base36 to Hex Converter: abc123 = 252ce35b

How the Base36 to Hex Converter Works

There's no direct digit-by-digit shortcut between base-36 and base-16 the way there is between binary and hex (where every hex digit maps neatly to 4 bits) — 36 isn't a power of 16, so the base36 to hex converter has to pass through a plain decimal integer in the middle. That's exactly the two-step process it runs on every value you type: Enter a hex value in the hex to decimal awk to see its decimal equivalent and copy the matching AWK command for reuse.

  1. Step 1 — Base-36 to decimal. Every character in the Base36 Input is converted to its numeric value (0-9 as-is, A=10 through Z=35), then multiplied by 36 raised to its position, counting from the rightmost digit as position 0. Summing every term gives the decimal integer.
  2. Step 2 — Decimal to hexadecimal. That decimal integer is divided by 16 repeatedly, recording the remainder at each step. Reading the remainders in reverse order (last remainder first) produces the final hexadecimal digits, which appear instantly in Hex Output as you type.

In formula form, for a base-36 string with digits d (read right to left) and k total characters:

$$ N_{10} = \sum_{i=0}^{k-1} d_i \times 36^{i} $$

Once N is a plain base-10 integer, the converter divides it by 16 over and over, using the standard remainder method every hex converter on this site relies on for base conversion.

Worked Example: Converting Base36 XYZ123 to Hex

Here's the full conversion for XYZ123, so you can check the tool's math against a real worked example:

  1. Assign character values: X=33, Y=34, Z=35, 1=1, 2=2, 3=3
  2. Multiply by powers of 36 (rightmost digit is position 0):
    $$33\times36^{5} + 34\times36^{4} + 35\times36^{3} + 1\times36^{2} + 2\times36^{1} + 3\times36^{0}$$
    $$= 1{,}995{,}383{,}808 + 57{,}106{,}944 + 1{,}632{,}960 + 1{,}296 + 72 + 3 = 2{,}054{,}125{,}083$$
  3. Divide the decimal result by 16 repeatedly, collecting remainders: 2054125083 → 128382817 R B, → 8023926 R 1, → 501495 R 6, → 31343 R 7, → 1958 R F, → 122 R 6, → 7 R A, → 0 R 7.
  4. Read the remainders in reverse: 7A6F761B

So XYZ123 in Base36 equals 2054125083 in decimal, which equals 7A6F761B in hex — exactly what the converter returns when you type it into Base36 Input.

Base-36 InputDecimal (intermediate)Hex Output
1Z7147
ABC123623698779252CE35B
XYZ12320541250837A6F761B

Using the Base36 to Hex Converter

Type or paste a Base36 string into the Base36 Input field and the hexadecimal equivalent appears in Hex Output as you type — there's also a Convert button if you'd rather trigger it manually. Toggle the Uppercase checkbox if you need capital A-F letters (some codebases and color-value conventions expect uppercase hex; others expect lowercase), and use the Copy button next to Hex Output to grab the result without selecting text by hand. The converter accepts both upper- and lowercase Base36 letters as input since Base36 is case-insensitive by definition.

Where Base36 to Hex Conversion Is Used

URL Shorteners and Compact ID Systems

Base-36 is a favorite encoding for short URLs, invoice numbers, and auto-incrementing database keys precisely because it packs more value into fewer characters than decimal or hex ever could. When one of those systems needs to hand a Base36 ID off to code that expects a hexadecimal value — a hash comparison, a color code, a memory offset — converting base36 to hex is the bridge between the two representations.

Debugging and Reverse-Engineering Encoded IDs

If you're staring at a Base36 session token, order number, or short link slug and need to know the raw integer or hex value behind it — say, to cross-reference it against a hex-formatted log line or a database primary key stored as hex — this converter gets you there in one step instead of working through the division-by-36 math by hand.

Learning Positional Numeral Systems

Because base-36 conversion requires an explicit decimal intermediate step (unlike binary-to-hex, which is a direct digit mapping), it's a genuinely useful example for understanding how positional numeral systems generalize beyond the bases most people learn in school. Students and developers checking base-conversion homework or brushing up on numeral-system fundamentals can verify their manual calculations against this tool's live output.

Base36 vs Hexadecimal at a Glance

Base-36Hexadecimal (Base-16)
Symbol set0-9, A-Z (36 symbols)0-9, A-F (16 symbols)
Typical length for the same valueShorterLonger
Common usesURL shorteners, compact IDs, database keysColor codes, memory addresses, binary-adjacent programming
Conversion between the twoRequires an intermediate decimal step — no direct digit mapping exists

Frequently Asked Questions

Does base36 to hex conversion lose any precision?

No. Both directions are exact integer arithmetic — the converter uses arbitrary-precision math in JavaScript, so even very long Base36 strings convert to their exact hex equivalent with no rounding.

Is there a faster shortcut than going through decimal?

Not for base-36. Digit-group shortcuts (like the one between binary, octal, and hex) only work when one base is a whole power of the other — 8 and 16 are both powers of 2, so binary maps cleanly to them. 36 isn't a power of 16, so decimal is unavoidably the bridge.

Can I convert the result back to Base36?

Yes — use the Hex to Base36 Converter to reverse the process and confirm you get your original Base36 string back.

Does this tool send my data anywhere?

No. The conversion runs entirely in your browser using client-side JavaScript. Nothing you type is uploaded or stored.