Number Base Converter
Convert numbers between binary, octal, decimal and hexadecimal.
Number Base Converter
Switching a value between binary, octal, decimal, and hexadecimal is a constant task in low-level and systems work, from reading memory addresses to setting bit flags and color values. This number base converter takes a number in any of those bases and shows its equivalent in all the others at once, so you don't have to reach for a calculator or mental math.
How it works
The conversion happens locally in your browser. Enter a value and choose its base, and the tool parses it and re-encodes it into binary, octal, decimal, and hexadecimal on your machine, updating every field as you type. Because it's plain client-side JavaScript, there's nothing to install, nothing is uploaded, and it keeps working offline once loaded.
Common use cases
- Decode a hex memory address or opcode into decimal.
- Work out bitmask and flag values in binary.
- Translate permission or color values between bases.
- Check homework or interview answers quickly.
Need to go further? Convert text to its binary representation with Text to Binary, translate hex color codes with the Color Converter, or handle Roman numerals using the Roman Numeral Converter.
Private by design
Whatever you enter stays in your browser — no upload, no account, no tracking. The converter is completely free and runs on any modern browser, including mobile, so you can crunch bases anywhere without sending a single value to a server.
Frequently asked questions
You can convert between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16), all at once.
Related tools
Color Converter
Convert colors between HEX, RGB, HSL and HSV with a live preview.
CSV to Markdown Table
Paste CSV and get a GitHub-flavored Markdown table you can drop into any README.
Markdown to HTML
Render Markdown to clean, sanitized HTML with a live preview.
HTML to Markdown
Convert HTML into tidy Markdown for docs, notes and issues.