Number Base Converter
Convert numbers between binary, octal, decimal and hexadecimal instantly.
This tool runs entirely in your browser. Your files are never uploaded to a server.
Binary
11111111
Octal
377
Decimal
255
Hexadecimal
ff
What this tool does
Converts a number entered in any one of four bases — binary (base 2), octal (base 8), decimal (base 10), or hexadecimal (base 16) — into the other three simultaneously, so you never have to convert one pair at a time.
How to use it
Type a number into any one of the four input fields; the tool detects which base you're using from which field you typed in and fills in the other three fields automatically.
Worked example
Entering `255` in the decimal field fills in `11111111` for binary, `377` for octal, and `FF` for hexadecimal — the same quantity, just written in four different positional number systems.
How base conversion works
Each system represents the same value using a different number of digits per position: binary uses only 0 and 1, octal uses 0–7, decimal uses 0–9, and hexadecimal extends past 9 with the letters A–F to represent 10 through 15, which is why `FF` in hex equals `255` in decimal.
Negative numbers and validation
Negative values are converted correctly and shown with a leading minus sign in every base; entering digits invalid for the selected base — like a `2` in a binary field or a `G` in hex — is rejected or ignored rather than producing an incorrect result.
Where this comes up
Base conversion is common when reading memory addresses, color codes, file permissions, IP subnet masks, or bitwise flags in source code, where the same number is often written in hex or octal for compactness even though it's stored as a decimal value at runtime.
Privacy
Conversion runs entirely in your browser via client-side JavaScript; the numbers you enter are never uploaded to a server or stored.
Frequently Asked Questions
- Which number bases does this tool support?
- Binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16) — enter a value in any one of them and see all four instantly.
- Does it support negative numbers?
- Yes, negative values are converted correctly and shown with a minus sign in every base.
- Is this tool free and private?
- Yes — completely free, no sign-up, and every conversion happens locally in your browser without sending data anywhere.
Related Tools
Hash Generator
Generate MD5, SHA-1, SHA-256 and SHA-512 hashes for free.
Unix Timestamp Converter
Convert Unix timestamps to human-readable dates and back, for free.
Random Hex Generator
Generate random hexadecimal numbers for free.
ASCII to Text Converter
Convert text to decimal 7-bit ASCII codes and those codes back to text.
ASTM to HL7 Converter
Convert ASTM E1394/LIS2-A2 laboratory messages into HL7 v2.x (ORU^R01) segments.
Binary to Text Converter
Convert text to UTF-8 binary bytes and complete 8-bit groups back to text.