Base 36 Converter

Convert numbers between decimal and base 36 (alphanumeric) notation

2N9C

All Base Representations

Binary (Base 2)11110001001000000
Octal (Base 8)361100
Decimal (Base 10)123456
Duodecimal (Base 12)5B540
Hexadecimal (Base 16)1E240
Vigesimal (Base 20)F8CG
Base 362N9C

About Base 36

Base 36 is the most compact case-insensitive alphanumeric numeral system using ASCII characters. It uses digits 0-9 and letters A-Z (representing values 10-35).

Common uses: URL shorteners, unique identifiers, compact encoding of numbers in file names, and serial numbers.

Character map: 0-9 = 0-9, A = 10, B = 11, ... Y = 34, Z = 35

What Is Base36?

Base36 is a positional numeral system that uses 36 unique symbols to represent numbers: the digits 0 through 9 and the uppercase letters A through Z, where A represents 10, B represents 11, and so on up to Z representing 35. Base36 is the most compact case-insensitive alphanumeric numeral system using standard ASCII characters. This means every character in a Base36 string can be typed using only one hand on a standard keyboard, and the result remains readable and unambiguous.

The appeal of Base36 lies in its balance between compactness and readability. A Base36 number can represent large values using relatively few characters while remaining human-readable without any special tools. For example, the decimal number 1,000,000 is represented as 'LFLS' in Base36 — just four characters instead of seven. This compactness makes Base36 extremely useful for generating short unique identifiers, URL shorteners, and compact serial numbers.

This converter supports bidirectional conversion between decimal and Base36. It also displays the number in seven different bases simultaneously — binary, octal, decimal, duodecimal, hexadecimal, vigesimal, and Base36 — giving you a comprehensive view of how the same quantity appears across different numeral systems.

Base36 Conversion Method

Converting between decimal and Base36 uses the standard algorithm for base conversion: repeated division by 36, collecting remainders at each step.

Decimal to Base36 Conversion

Divide by 36, record remainder, repeat with quotient

Where:

  • N= Decimal number to convert
  • 36= Target base
  • Remainder= Maps to 0-9 for values 0-9, A-Z for values 10-35

Base36 Character Map

Understanding the mapping between Base36 characters and their numeric values is essential for manual conversion and debugging.

Value Character Value Character
0-90-918-27I-R
10-17A-H28-35S-Z

How to Use This Calculator

The Base36 converter provides two conversion directions and a comprehensive multi-base display:

  1. Choose the conversion direction: Click "Decimal → Base 36" or "Base 36 → Decimal" to set the mode.
  2. Enter the number: Type a decimal number (digits 0-9) or a Base36 value (digits 0-9 and letters A-Z) into the input field.
  3. View the result: The converted value appears in the result field. Additionally, the "All Base Representations" section shows the number in binary, octal, decimal, duodecimal, hexadecimal, vigesimal, and Base36 simultaneously.

Invalid input is automatically detected and flagged with an error message.

Real-World Applications

Base36 is widely used in URL shorteners and compact identifier generation. Services like bit.ly, t.co, and tinyurl use Base36 (or its case-sensitive cousin Base62) to encode database record IDs into short, readable URLs. A Base36 encoding of a 32-bit integer produces at most 7 characters, compared to 10 digits in decimal, making URLs significantly shorter and more user-friendly.

In software development, Base36 is useful for generating human-readable unique identifiers. Session tokens, invitation codes, and short reference numbers often use Base36 to achieve a balance between security (many possible values) and usability (short enough to type or read aloud over the phone).

Data serialization and storage applications sometimes use Base36 to compress numeric values. MongoDB, for example, uses a Base62 variant for its short identifiers, and similar approaches with Base36 appear in various database systems and file naming conventions where compactness and readability are both important.

Worked Examples

Decimal 123456 to Base36

Problem:

Convert the decimal number 123456 to Base36.

Solution Steps:

  1. 1123456 ÷ 36 = 3429 remainder 12
  2. 23429 ÷ 36 = 95 remainder 9
  3. 395 ÷ 36 = 2 remainder 23
  4. 42 ÷ 36 = 0 remainder 2
  5. 5Map remainders to Base36: 2, 23=X, 9=9, 12=C
  6. 6Read from last to first: 2X9C

Result:

123456 in decimal = 2X9C in Base36

Base36 'HELLO' to Decimal

Problem:

Convert the Base36 string 'HELLO' to decimal.

Solution Steps:

  1. 1H=17, E=14, L=21, L=21, O=24
  2. 2Position 4: 17 × 36⁴ = 17 × 1,679,616 = 28,553,472
  3. 3Position 3: 14 × 36³ = 14 × 46,656 = 653,184
  4. 4Position 2: 21 × 36² = 21 × 1,296 = 27,216
  5. 5Position 1: 21 × 36¹ = 21 × 36 = 756
  6. 6Position 0: 24 × 36⁰ = 24 × 1 = 24
  7. 7Sum: 28,553,472 + 653,184 + 27,216 + 756 + 24 = 29,234,652

Result:

HELLO in Base36 = 29,234,652 in decimal

Comparing Bases for Compactness

Problem:

How many characters does it take to represent the decimal number 1,000,000 in different bases?

Solution Steps:

  1. 1Binary: 11110100001001000000 = 20 characters
  2. 2Octal: 3641100 = 7 characters
  3. 3Decimal: 1000000 = 7 characters
  4. 4Hexadecimal: F4240 = 5 characters
  5. 5Base36: LFLS = 4 characters

Result:

Base36 requires only 4 characters vs 7 for decimal, making it nearly twice as compact

Tips & Best Practices

  • Base36 is the most compact case-insensitive alphanumeric system available
  • Each Base36 digit represents log₂(36) ≈ 5.17 bits of information
  • A 6-character Base36 string can represent over 2 billion unique values
  • URL shorteners use Base36 (or Base62) to create short, readable links
  • Base36 is great for generating human-readable serial numbers and IDs
  • JavaScript's toString(36) method converts numbers to Base36 automatically

Frequently Asked Questions

Base36 is used for generating compact, human-readable identifiers. Common applications include URL shorteners (like bit.ly), short unique IDs in databases, session tokens, invitation codes, and any context where you need a short string that represents a number while remaining easy to type and read.
Base36 uses 36 characters (0-9 and A-Z) and is case-insensitive, while Base64 uses 64 characters (A-Z, a-z, 0-9, +, /) and is case-sensitive. Base36 is more compact than decimal but less compact than Base64. Base36 is preferred when case-insensitivity is required or when only alphanumeric characters are available.
In Base36, the digit 0 represents 0, the digit 9 represents 9, the letter A represents 10, B represents 11, and so on through Z which represents 35. To find a letter's value, subtract 'A' from the letter and add 10. For example, 'F' = 70 - 65 + 10 = 15.
Standard Base36 is case-insensitive, meaning 'A' and 'a' represent the same value (10). This converter uses uppercase letters in its output, but input can be either case. Some implementations use Base62 (adding lowercase letters) for case-sensitive encoding that produces shorter strings.
A 6-character Base36 string can represent values up to 36⁶ - 1 = 2,176,782,335, which is over 2 billion. A 7-character string can represent up to 36⁷ - 1 = 78,364,164,095, nearly 78 billion. This makes Base36 ideal for encoding 32-bit integers, which require at most 7 characters.

Sources & References

Last updated: 2026-06-06

💡

Help us improve!

How would you rate the Base 36 Converter?

<>

Editorial Note

MyCalcBuddy Editorial Team

This page is maintained as an educational calculator reference.

Source

Formula Source: NIST Guide to SI Units

by National Institute of Standards

UpdatedLast reviewed: May 2026
CheckedFormula checks are based on standard references and internal QA review.