Number Base Converter
Convert numbers between binary, octal, decimal and hexadecimal instantly. Free and in-browser.
Edit any field — the others update live. BigInt-backed, so arbitrarily large integers are safe. Examples: 11111111, 377, 255, ff.
How to use the Number Base Converter
- 1Locate the four input fields labeled Binary, Octal, Decimal, and Hexadecimal, each grouped so you always know which base you are reading.
- 2Click the field matching the base of the number you already have, then type or paste the value directly into it.
- 3Watch the other three fields update instantly as you type, since conversion runs live in the browser with no button press or page reload required.
- 4If a character is invalid for that base (for example an 8 in octal or a Z in hex), notice the field flags the error and correct the input.
- 5Click the copy icon next to whichever output field you need to place that representation on your clipboard.
- 6Clear the field or type a new value to convert another number, all without any data leaving your device.
About the Number Base Converter
The Number Base Converter turns a single value into its binary, octal, decimal, and hexadecimal equivalents at the same time, so you can read one number across all four positional systems without doing the arithmetic by hand. You type a value into the field for the base you already have, and the tool immediately fills the other three. Enter 255 in the decimal box and you instantly see 11111111 in binary, 377 in octal, and FF in hex. Everything happens in JavaScript inside your own browser using native BigInt math, which means the conversion runs the moment you release a key, works on very large integers without rounding errors, and functions offline once the page has loaded. Nothing you type is ever uploaded, logged, or sent to a server, so pasting a memory address, a register dump, or an internal ID carries no privacy risk. The converter validates each field against its base as you go: it rejects the digit 8 in an octal box, or the letter G in a hex box, and flags the input rather than guessing. Hexadecimal is treated case-insensitively, so ff and FF are read as the same value. This is a daily tool for anyone who lives near the metal. Embedded and firmware developers use it to translate register masks and GPIO pin values. Web and CSS authors convert between decimal RGB channels and hex color codes. Students learning computer architecture check their homework on two's-complement and place-value problems. Network engineers decode subnet masks and flag bytes. A practical tip: leading zeros are ignored, so 0x prefixes and padding do not change the result, and you can copy any output field with one click to drop it straight into code. Because it converts in every direction from whichever field you edit, there is no separate "from" and "to" selector to fumble with. It matters because base errors are silent and expensive: a hex value misread as decimal compiles cleanly and fails only at runtime, and a converter that shows all four bases at once makes that mistake obvious before it ships.
Frequently asked questions
Can it convert negative numbers and very large integers?
It handles arbitrarily large integers exactly because it uses JavaScript BigInt rather than floating point, so a 64-bit or larger value converts without rounding. For negatives, standard binary and hex representation is unsigned by design; if you need two's-complement of a negative, first work out the bit width you are targeting, since the same bit pattern maps to different signed values depending on whether it is 8, 16, 32, or 64 bits wide.
Does it accept prefixes like 0x, 0o, or 0b?
You do not need them. Each field is already tied to a specific base, so you type the raw digits into the matching box. Leading zeros and a 0x-style prefix, if pasted, are ignored rather than treated as extra digits, so 0xFF and FF give the same decimal 255.
Why does it reject certain letters or digits I type?
Each base only permits its own symbol set: binary allows 0 and 1, octal allows 0 through 7, decimal 0 through 9, and hexadecimal 0 through 9 plus A through F. Typing an 8 in the octal field or a G in the hex field is mathematically meaningless, so the tool flags it instead of silently producing a wrong answer.
Is hexadecimal input case-sensitive?
No. Upper and lower case hex digits are equivalent, so ff, FF, and Ff all convert to the same value. Outputs are shown in a consistent case so results stay easy to compare.
Does it work offline and is my data private?
Yes to both. The conversion logic is plain JavaScript running in your browser, so once the page has loaded you can disconnect from the internet and it keeps working. No value you enter is transmitted anywhere, which makes it safe for pasting register values, addresses, or internal identifiers you would not want leaving your machine.
Related tools
Browse all free online tools in Generators and more.
Frequently asked questions
Which bases are supported?+
Binary (2), octal (8), decimal (10) and hexadecimal (16).