Convert number bases
Convert numbers between binary, octal, decimal and hexadecimal in real time. Type in any base and copy the result. Free, fast and private.
- Files never leave your device
- Free, no sign-up
- No watermark
About Number Base Converter
Convert a number between binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16) instantly. Type a value, choose the base it is written in, and all four representations appear at once, ready to copy. It is useful for programming, networking, colour codes, file permissions and computer science homework.
How to use Number Base Converter
- 1
Enter a number.
- 2
Choose the base it is written in.
- 3
Read the binary, octal, decimal and hex values.
- 4
Copy the one you need.
Why use this tool
- Binary, octal, decimal and hexadecimal.
- Real-time conversion.
- Input validation for each base.
- One-click copy.
- Handles large integers.
Frequently asked questions
Choose hexadecimal as the input base and type the value, for example FF, to get 255.
Each hex digit maps to exactly four bits, which makes binary data easier to read.
It is a prefix that marks a number as hexadecimal in many programming languages.
The converter is designed for non-negative integers, which covers most everyday conversions.
Octal appears in Unix file permissions, such as 755.
No. Everything is processed in your browser tab. Nothing you type or paste is sent to CodeMites or any other server.
Yes. There is no account, no watermark and no usage limit. The tool runs in your own browser, so there is no server cost to charge you for.
Yes. It runs in any modern browser on Android and iOS as well as on Windows, macOS and Linux, with nothing to install.
Yes, once the page has loaded. Everything runs in your browser, so you can keep working on a train or plane without a connection.
Related tools
All Developer tools →- CIDR CalculatorCalculate network address, broadcast, host range, subnet mask and host count from CIDR notation, with binary view.
- Chmod CalculatorSet Unix file permissions with checkboxes and get the octal value, symbolic notation and chmod command.
- UUID GeneratorGenerate random v4 or timestamp-based v1 UUIDs, one at a time or up to 100 in bulk, and validate existing UUIDs.
- Regex TesterTest regular expressions with live match highlighting, capture groups, flags and a quick-reference cheat sheet.
- Cron Expression BuilderBuild cron expressions with dropdowns, read them in plain English and preview the next run times.
- URL Encoder & DecoderEncode text for safe use in URLs or decode percent-encoded strings, with component and full-URL modes.