Number Base Converter
Convert numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36. Paste a value, pick the bases and copy the result in your browser.
Value
Stays in your browserWhole numbers only (no decimals). Handles arbitrarily large values.
Result (base 16)
Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)
Online Number Base Converter
Convert a number between any two bases from 2 to 36 — binary, octal, decimal, and hexadecimal are common presets, but any base in that range works. Useful for reading memory dumps and bit flags, converting color codes, or just checking what a hex literal actually equals in decimal. Handles arbitrarily large whole numbers via BigInt. It helps developers inspect protocol values and convert numbers between binary, octal, decimal, hexadecimal, and other bases.
What is a number base (radix)?
A number's base — also called its radix — determines how many unique digits are used to represent values and what each digit position is worth. Decimal (base 10) is what people use day to day; binary (base 2) is how computers represent everything at the hardware level; hexadecimal (base 16) is a common shorthand for binary data because each hex digit maps to exactly 4 bits. This tool converts a value between any two bases from 2 to 36.
How to convert a number between bases
Enter a value in the input box, choose its current base under From base and the base you want under To base, then click Convert. Use the swap button to instantly reverse direction, or pick any base from 2 to 36 under "All bases" if you need something beyond the common presets.
Common use cases
- Converting a hex literal from source code into decimal to understand its actual value
- Reading raw memory dumps or register values shown in hexadecimal or binary
- Decoding bit flags, where each binary digit represents an on/off setting
- Converting color codes between hex (e.g. #FF5733) and decimal RGB components
Conversion is handled with BigInt internally, so arbitrarily large whole numbers convert accurately without losing precision the way JavaScript's regular number type would beyond 2^53.
Worked example
255 (decimal) converts to FF in hex, and back again to 255 in decimal. A much larger value, 123456789012345678901234567890 (base 10), converts correctly to BYW97UM9S91DLZ68TSI in base 36 — far beyond what a regular JavaScript number could represent without losing precision.
Common mistakes and edge cases
- If your input has more than one invalid digit for the chosen base, the error reports only the first one it hits, scanning left to right — in testing,
"129"read as binary reports"2"as invalid, not"9", even though both are. Expect to fix and re-check more than once on messy input. - Letters are treated case-insensitively as digits (
a=10 throughz=35), so base 36 uses every letter of the alphabet as a valid digit — there's no separate "letter" concept once you're past base 10.