Category: Developer tools
Number Base Converter
Convert one integer into binary, octal, decimal and hexadecimal at once
Convert an integer from base 2, 8, 10, 16 or custom base 2-36 into binary, octal, decimal and hex with exact BigInt arithmetic in your browser.
Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
This number base converter accepts one integer in a selected source base: binary, octal, decimal, hexadecimal or any custom base from 2 to 36 using digits 0-9 followed by a-z. Spaces, underscores and commas inside the input are ignored, a leading plus or minus sign is carried through, and 0b, 0o or 0x prefixes are accepted when they match the selected base. Conversion uses BigInt, so large integers stay exact instead of being clipped to a 32-bit or 64-bit range. The output is always the same four standard bases: binary, octal, decimal and hexadecimal. Optional grouping makes binary and hexadecimal easier to read four digits at a time, and octal three digits at a time. The page is intentionally not a general programmer calculator. It does not support fractions, decimal points, scientific notation, arbitrary target bases, IEEE-754 float inspection, fixed bit widths, two's-complement output, overflow wrapping, arithmetic, bitwise operations, expressions, ASCII views, copy buttons, uploads or downloads. The value and conversions stay in your browser.
How to use it
- Choose the source base: binary, octal, decimal, hexadecimal or a custom base from 2 to 36.
- Enter an integer; spaces, underscores, commas and a matching 0b, 0o or 0x prefix are handled.
- Read the binary, octal, decimal and hexadecimal results together, with optional grouping for long output.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- What is a number base or radix?
- It is the number of symbols used to write a positional number. Binary uses base 2, octal base 8, decimal base 10 and hexadecimal base 16.
- What is the maximum supported base?
- The source base can be any integer from 2 to 36. Base 36 is the practical limit here because the digit set is 0-9 followed by a-z.
- Can I choose a custom output base?
- No. The custom base applies only to the input. Output is always binary, octal, decimal and hexadecimal.
- Are spaces, underscores and negative numbers supported?
- Yes. Spaces, underscores and commas inside the value are ignored, and a leading plus or minus sign is carried through to every result.
- Will very large integers overflow?
- They are converted with BigInt, so values far beyond 64 bits stay exact. The practical limit is how much text your browser can comfortably process and display.