Base36 Random ID Generator

Base36-encoded random number

Generating...

About

Base36 encoding uses 36 characters (0-9, A-Z) to represent numbers. Base36 IDs are compact, case-insensitive, and use only alphanumeric characters. They're useful for generating short, URL-friendly identifiers that are easy to read and type. Base36 is the highest base that can be represented using only Arabic numerals and Latin letters without case sensitivity.

Use Cases

  • Case-insensitive identifier systems
  • Short URL slugs and links
  • Compact numeric representations
  • URL-friendly identifiers
  • Human-readable unique IDs
  • Systems requiring alphanumeric-only IDs

How to Generate

Library

Native JavaScript (BigInt.toString(36))

NPM Package

N/A - Native implementation

Code Example

// Native implementation using BigInt
const randomValue = BigInt(
  '0x' + Array.from(crypto.getRandomValues(new Uint8Array(8)))
    .map(b => b.toString(16).padStart(2, '0'))
    .join('')
);
const base36Id = randomValue.toString(36).toUpperCase();