Number Base Converter
Convert numbers online between binary, octal, decimal, hexadecimal and any base from 2 to 36, with BigInt precision for very large values.
Runs in your browser · Nothing uploadedFree · No sign-up
Something not working, or missing a feature? Send feedback
About the Number Base Converter
The Number Base Converter converts integers between binary, octal, decimal, hexadecimal and any base from 2 to 36 at once. It uses arbitrary-precision BigInt, so very large numbers stay exact.
Conversion happens in your browser, so your files and records stay private.
How to use the Number Base Converter
- Type or paste a whole number.
- Choose its input base, for example 16 for hexadecimal (2–36).
- Read it in binary, octal, decimal, hexadecimal and a custom output base, and copy the one you need.
Example
Input
0xBEEF (input base 16)
Result
Binary 1011 1110 1110 1111 Octal 137 357 Decimal 48 879 Hexadecimal beef Base 36 11pr
The 0x prefix is optional when the input base is 16. Digits are grouped for reading; the copy buttons copy them without spaces.
Common mistakes
- The wrong input base. The digits 10 mean ten in decimal, two in binary and sixteen in hexadecimal. Check the input base before reading the results.
- Fractions. Only whole numbers are converted. 0.5 or 1e3 are reported as invalid digits; convert the integer part, or scale the number first.
- Negative numbers in two’s complement. A minus sign is kept as a sign, so -1 is -1 in binary, not 11111111. Two’s complement depends on the bit width, which a plain number does not have.
Works well with the Number Base Converter
- Binary to Decimal Converter: see the place-value working for one binary number.
- Decimal to Hex Converter: see the division by 16 step by step.
- Color Converter: convert hex colour channels to decimal RGB.
- Hash Generator: produce hexadecimal digests.
- Unicode Escape / Unescape: see the hex code points of characters.
Frequently asked questions
How large can numbers be?
There is no practical limit: BigInt keeps every digit exact, unlike regular floating-point numbers.
Do I need prefixes like 0x or 0b?
No. Choose the input base instead. Prefixes are accepted too: 0x with base 16, 0b with base 2 and 0o with base 8.
Which prefixes and separators are accepted?
0x for hexadecimal, 0b for binary and 0o for octal, when the matching input base is selected. Underscores and spaces between digits, as in 1_000_000, are ignored.
Which digits are used above base 10?
The letters a–z stand for 10–35, so base 36 uses all digits and letters. Input is not case-sensitive.
Guides and tutorials
- Programming Languages
Binary, Octal, Decimal and Hex: Number Bases for Programmers
How number bases work, converting binary, octal, decimal and hex by hand and in code, where each one appears, and the parseInt and precision traps to avoid.
· 5 min read
- Programming Languages
Pointers in C Explained: Addresses, Arrays and Memory with Runnable Examples
Learn C pointers step by step: & and *, double pointers (**), pointers in functions, arrays, pointer arithmetic, malloc and free, and the bugs to avoid.
· 8 min read
Related tools
JSON to CSV
Convert JSON arrays to CSV online with automatic column detection, nested object flattening and custom delimiters. Open the result in Excel or Sheets.
CSV to JSON
Convert CSV to a JSON array online with header detection, type inference and delimiter auto-detection. Turn spreadsheet exports into data for APIs and code.
JSON to XML
Convert JSON to well-formed XML online with a configurable root element and attribute support. Validate the input and download the XML file.
XML to JSON
Convert XML to JSON online, keeping attributes and turning repeated elements into arrays. Malformed XML is reported with its location.
JSON to YAML
Convert JSON to clean, human-readable YAML online. Turn API responses and package files into config for Kubernetes, Docker Compose or CI pipelines.
YAML to JSON
Convert YAML documents to formatted JSON online with syntax validation. Errors are reported by line, so broken indentation is quick to find and fix.