Base64Hub

Base36 Translator: Radix-36 Alphanumeric Integer Workbench

Convert large integers, compress Unix millisecond timestamps into compact 8-character slugs, and transcode data into case-insensitive Base36 strings ([0-9a-z]) immune to filesystem and case collisions.

RADIX-36 (CASE-INSENSITIVE)
13 Digits
mj085zfr
Radix-36 Alphanumeric: Case-insensitive [0-9a-z] alphanumeric compact IDs
Input Digits13 Digits
Base36 Output8 Characters
Alphanumeric Set36 Glyphs (0-9a-z)
Case SensitivityCase-Insensitive
Radix-36 Polynomial Division (36^k) Case-Insensitive Alphanumeric Tokenizer
1793336843003 = 22*36^7 + 19*36^6 + 0*36^5 + 8*36^4 + 5*36^3 + 35*36^2 + 15*36^1 + 27*36^0
Base36: [22='m', 19='j', 0='0', 8='8', 5='5', 35='z', 15='f', 27='r'] -> "mj085zfr"
Relational database primary index registers and distributed timestamp sequence generators encoding 64-bit integer values into Base36 case-insensitive tokens
Database indexing engine translating 64-bit millisecond sequence counters into compact, case-insensitive Radix-36 tokens.
Radix-36 Alphanumeric Standard Specifications

Base36 represents numbers in base 36 using digits 0-9 and Latin alphabet letters a-z. It packs 5.17 bits of information per character, offering compact representation while guaranteeing 100% case-insensitivity on Windows NTFS systems and legacy SQL databases.

Base36 (5.17b) vs. Hex (4.00b) vs. Base32 (5.00b) Entropy Efficiency

Bit density per encoded character across case-insensitive radix encoding formats

Radix-36 Density (5.17 bits/char) Hexadecimal Base16 (4.00 bits/char)
56 B 28 B 0 B 0.25x Raw 14 B Payload (20 B B64) 2.0x Scale
RFC 4648 Information Density Ratio (Raw / Base64 Wire Size) 75.0% Payload Efficiency (+33.3% Overhead)
Big-Integer Radix-36 Modulo Polynomial Decomposition
Vint = ∑i=0m-1 Bi256m-1-i = ∑j=0k-1 Tj36k-1-j

How Does Base36 Prevent Case-Sensitivity Collisions in Legacy Databases and File Systems?

Base36 encodes decimal integers into a compact 36-character alphanumeric alphabet [0-9a-z]. Because it uses the ten Arabic digits and twenty-six Latin letters without distinguishing uppercase from lowercase, Base36 strings are immune to casing corruption caused by case-insensitive filesystems, case-insensitive database collations, and email clients.

A common trap in distributed architectures is generating case-sensitive tokens (such as Base62 URL Shortener Tokens) for filenames on Windows or macOS APFS, where "TokenA" and "tokena" collide on disk. Base36 completely eliminates this risk by treating all letters uniformly, making it the industry standard for coupon voucher codes, invoice serials, and Reddit post identifiers.

To inspect 5-bit case-insensitive byte streams with error correction, explore our Base32 & Crockford Decoder, analyze raw byte structures in Hexadecimal & Binary Byte Converters, or review standard 6-bit encodings in Base64 Encoding & Data URI Converters.


Formal Mathematical Proof & Byte Boundary Audit

Mathematical Specifications, Native MathML Models & Verification Vectors

Formal IETF RFC 4648, IEEE Radix-16, ITU-R M.1677-1, and NIST FIPS 180-4 equations governing the client-side engine.

RFC 4648 §4 Base64 24-Bit Quantum Expansion

Verified Standard
LB64=4×⌈n3⌉andPpad=(3−(nmod3))mod3

Every 3-octet (24-bit) input group subdivides into four 6-bit indices (0..63). Remainder octets require 1 or 2 padding (0x3D) characters to align the 4-character quantum.

n (Input UTF-8 Bytes)
14

Byte length emitted by UTF-8 TextEncoder.encode(str)

L_B64 (Encoded Wire Size)
20

4-byte aligned ASCII output length (+33.33% ceiling)

RFC 4648 §8 Base16 Hexadecimal Positional Radix

Verified Standard
V10=∑i=0k−1di⋅16iwhereLHex=2n

Splits each 8-bit octet into high (b >> 4) and low (b & 0x0F) 4-bit nibbles mapped onto 0–9 and A–F, doubling character length (+100%).

L_Hex (Hex Nibble Length)
28

Two hexadecimal nibbles per raw input byte

0xFF (Max Octet Value)
255 Dec

Binary 11111111 full 8-bit unsigned integer ceiling

ITU-R M.1677-1 International Morse Signal Timing

Verified Standard
Tdah=3⋅Tdit,Tchar=3⋅Tdit,Tword=7⋅Tdit

Standardizes telegraph pulse durations relative to the fundamental dot quantum T_dit (1200 / WPM milliseconds under PARIS 50-unit calibration).

T_dit (Dot Unit)
1 Unit

Base pulse duration and intra-character element gap

T_word (Word Delimiter)
7 Units

Represented by "/" between space-delimited character codes

NIST FIPS 180-4 SHA-256 Compression Functions

Verified Standard
Ch(e,f,g)=(e∧f)⊕(¬e∧g),Maj(a,b,c)=(a∧b)⊕(a∧c)⊕(b∧c)

Processes 512-bit padded blocks across 64 Merkle-Damgård rounds over eight 32-bit state registers (H0..H7) to emit a 256-bit (64-hex-char) digest.

H_0..H_7 (Digest State)
256 Bits

Fractional square roots of the first 8 primes (2..19)

K_0..K_63 (Round Constants)
64 Words

Fractional cube roots of the first 64 primes (2..311)

Empirical Specification Verification Matrix

Vector Profile Input Stream Deterministic Output Byte Boundary Implication
UTF-8 Greeting Vector Plaintext: "Hello, Base64!" (14 B) SGVsbG8sIEJhc2U2NCE (1-pad, 20 B) 5-quantum ceiling with single 0x3D padding character (n mod 3 is 2).
High-Bit Octet Sequence Bytes: [251, 255, 191] (0xFBFFBF) Std: +/+/ | URL: -_-_ RFC 4648 §5 replaces "+" and "/" to prevent URL query corruption.
Hexadecimal Byte Stream Hex: "48 65 78" & "0xFF" ASCII: "Hex" | Dec: 255 (11111111) Case-insensitive radix-16 nibble parsing without NaN truncation.
ITU-R Distress Signal Plaintext: "SOS" (3 Chars) ... --- ... (27 Timing Units) 3 dits + 3-unit gap + 3 dahs + 3-unit gap + 3 dits.
NIST FIPS 180-4 Vector Input: "abc" (24 Bits) ba7816bf8f01cfea...f20015ad (64 Hex) Single 512-bit block compression yielding deterministic 256-bit digest.

1. 36 Alphanumeric Glyph System

Consists of digits 0-9 and alphabet characters a-z. Any uppercase input is normalized immediately to lowercase during parsing, ensuring total case-insensitivity.

2. 13-Digit Timestamp Compression to 8 Characters

A 13-digit Unix millisecond epoch timestamp (e.g. 1793336843003) condenses cleanly into an 8-character string (mj085zfr), shrinking identifiers by ~38.5%.

3. Native Language Runtime Interoperability

Directly supported natively in standard library runtimes: JavaScript's Number.toString(36), Python's int(val, 36), and PHP's base_convert(val, 10, 36).

4. Case-Insensitive Filesystem Safety

Guarantees zero file overwrite risks or cache collisions on Windows NTFS, FAT32, and macOS default APFS volumes where uppercase and lowercase paths refer to the same inode.

How Do Base36, Base32, Hexadecimal (Base16), and Base62 Encodings Compare?

Evaluate character sets, case sensitivity behavior, information entropy density, and primary architecture use cases across common positional radices.

Radix Codec Base Size Case Insensitive? Punctuation Used Entropy (Bits/Char) Ideal Application
Radix-36 (Base36) 36 Yes (0-9, a-z) None (0%) 5.170 Timestamp IDs, Voucher codes, Cross-platform paths
Hexadecimal (Base16) 16 Yes (0-9, a-f) None (0%) 4.000 Byte inspection, Memory dumps, Cryptographic hashes
RFC 4648 Base32 32 Yes (A-Z, 2-7) = (Padding) 5.000 TOTP 2FA Secret Keys, Tor Onion routing addresses
GMP Base62 62 No (Case-Sensitive) None (0%) 5.954 URL shortener slugs, Compact 128-bit UUID primary keys

Frequently Asked Questions: Base36 Radix & Timestamp Encoding

Why is Base36 preferred for case-insensitive systems, filesystems, and human voucher codes? +

Base36 uses 36 alphanumeric characters consisting of Arabic numerals 0–9 and the 26 Latin letters A–Z without case distinction. Because systems like Windows NTFS/FAT32 filesystems, legacy SQL collations (utf8_general_ci), and human telephone transcription do not reliably preserve case sensitivity, Base36 guarantees zero ambiguity or collisions regardless of capitalization.

How does Base36 compress large Unix millisecond timestamps into compact 8-character IDs? +

A 13-digit Unix millisecond timestamp (e.g. 1793336843003) represents an integer over 1.7 trillion. In decimal notation, it consumes 13 characters. In Radix-36 (where 36^8 ≈ 2.821 trillion), that exact millisecond timestamp condenses into an 8-character alphanumeric string (such as 'mj085zfr'), reducing key storage by 38.5% while remaining chronologically sortable.

How does Base36 handle BigInt operations beyond JavaScript's Number.MAX_SAFE_INTEGER limit? +

Standard JavaScript Number types lose precision above 2^53 - 1 (9,007,199,254,740,991). High-precision Base36 codecs implement native JavaScript BigInt arithmetic, performing repeated division and modulo 36n operations on arbitrary-precision byte streams to ensure zero truncation or integer overflow when encoding 64-bit or 128-bit identifiers.

What is the theoretical entropy density of Radix-36 compared to Hexadecimal and Base64? +

Base36 yields log2(36) ≈ 5.1699 bits of entropy per character. Hexadecimal (Base16) yields exactly 4.0 bits/char, while Base64 provides 6.0 bits/char. Consequently, Base36 is 29.2% more space-efficient than hexadecimal while remaining completely case-insensitive and free from punctuation symbols.

Can Base36 strings be parsed natively across mainstream programming languages? +

Yes. In JavaScript, parseInt(str, 36) and num.toString(36) offer built-in Radix-36 support for safe integers. Python provides int(str, 36), Ruby supports str.to_i(36) and num.to_s(36), and PHP provides base_convert(val, 10, 36), making Base36 one of the most widely supported multi-radix formats in standard software runtimes.

RFC 4648 Multi-Radix Protocol Inspector

Filename & URI Safe Base64URL Alphabet (Indices 62 & 63)

Replaces standard Base64 index 62 (+) with hyphen-minus (-, 0x2D) and index 63 (/) with underscore (_, 0x5F) while omitting trailing = (0x3D) padding characters for OAuth 2.0 PKCE and JWT headers.

Quantum Block
24-Bit (3 Octets -> 4 Sextets)
Index 62 / 63
- (0x2D) / _ (0x5F)
Canonical Vector
[251,255,191] -> -_-_
Encoding SchemeNormative RFCInput -> Output QuantumWire ExpansionPadding & URL Safety
Base64 Standard IETF RFC 4648 §4 3 Bytes (24b) -> 4 Sextets +33.33% (4/3n) Mandatory = (0x3D); unsafe + and / in URIs
Base64URL (Filename Safe) IETF RFC 4648 §5 3 Bytes (24b) -> 4 Sextets +33.33% (4/3n) Optional = omitted; uses - (0x2D) and _ (0x5F)
Base32 Uppercase IETF RFC 4648 §6 5 Bytes (40b) -> 8 Quintets +60.00% (8/5n) Uses A–Z and 2–7; case-insensitive DNS/TOTP safe
Base16 Hexadecimal IETF RFC 4648 §8 1 Byte (8b) -> 2 Nibbles +100.00% (2n) Zero padding; deterministic 0x00–0xFF nibble pairs
Percent-Encoding IETF RFC 3986 §2.1 1 Reserved Byte -> %XX Variable (1x–3x) Escapes reserved URI delimiters via % hex triplets