Number Base Converter
Convert between binary, octal, decimal, and hexadecimal
Enter a number to see conversion results
Overview
Instantly convert between binary, octal, decimal, and hexadecimal. Type a value in any field and the other three bases update automatically. It is a quick utility you will reach for constantly when programming or studying digital logic.
Key Features
- Mutual conversion between binary, octal, decimal, and hexadecimal
- Auto-calculate remaining fields when one is entered
- Large number support (BigInt-based)
- Real-time input validation for invalid characters
- One-click copy of results
How to Use
- Enter a value in the field matching its number base.
- The other three bases are computed and displayed automatically.
- Copy any result to your clipboard with the copy button.
Tips
- Hex digits A-F are case-insensitive.
- In code you might prefix 0x (hex), 0b (binary), or 0o (octal), but here just enter the digits without prefixes.
- Remember that color codes like #FF5733 are just the hex values of R, G, B -- a practical application of base conversion.
FAQ
- Can I convert negative numbers?
- This tool supports positive integers. Negative binary representations (like two's complement) require specifying bit width, so use a dedicated complement calculator for those.
- Does it handle fractional numbers?
- Currently only integers are supported. Fractional base conversion is not available.
- What is the maximum number of digits I can enter?
- It runs on JavaScript BigInt, so very large numbers are supported. Extremely long inputs may affect browser performance, though.