BASE CONVERTER
Convert between binary, octal, decimal, hexadecimal, and any custom base from 2 to 36.
In short
Convert numbers between binary, octal, decimal, and hexadecimal — plus any custom base from 2 to 36 — instantly and entirely in your browser.
| Binary | 11111111 |
| Octal | 377 |
| Decimal | 255 |
| Hexadecimal | ff |
= 73
How to convert a number between bases
- 1
Choose the base your number is currently in: binary, octal, decimal, or hexadecimal.
- 2
Type the number — prefixes like 0x, 0o, and 0b are optional and stripped automatically.
- 3
Read the same value converted into every other base at once, or enter a custom base from 2 to 36.
Questions
- Why do I need bases other than decimal?
- Computers store everything in binary, but binary is unwieldy for humans to read, so hexadecimal (base 16) became the standard shorthand — each hex digit maps exactly to 4 binary bits, which is why you'll see hex in color codes, memory addresses, and MAC addresses. Octal (base 8) is less common today but still shows up in Unix file permissions.
- How large a number can this handle?
- This uses JavaScript's BigInt type internally, so it isn't limited by normal floating-point precision — it can accurately convert integers with dozens of digits, far beyond what a standard calculator's number type could handle without rounding errors.
- What does a "custom base" mean?
- Any base from 2 to 36, using digits 0–9 and then letters a–z for values 10 and above (so base 36 uses every digit and every letter). Base 36 is sometimes used to create short, URL-safe identifiers from large numbers, since it packs more value into fewer characters than decimal or hex.
- Does this convert negative numbers or fractions?
- No — it's built for positive whole numbers, which covers the vast majority of base-conversion needs (memory addresses, color values, IDs, permission bits). Negative numbers and fractional values use different representation rules (two's complement, fixed-point) that are outside the scope of a simple base converter.
Related tools
- Binary ConverterConvert text to binary and back, both directions in one tool.
- ASCII TableA searchable reference of all 128 ASCII characters with decimal, hex, octal, and binary codes, plus a live lookup.
- JWT DecoderPaste a JWT, see the header, payload, and claims — and verify the signature.
- Hash GeneratorGenerate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text.
- Base64 EncoderEncode text to Base64 or decode it back, with correct UTF-8 handling.
- URL Encoder / DecoderPercent-encode or decode text and URLs, component or full-URL scope.
- CSS Escape GeneratorEscape text for a safe CSS class/ID selector or string literal, using the browser's native CSS.escape().
- UUID ValidatorValidate one or many UUIDs at once. Detects version (v1–v8) and variant, normalizes compact or braced formats — nothing uploaded.
Updated