Number Base Converter Tool
Convert between binary, octal, decimal, and hexadecimal. Supports negative numbers and bit width.
To convert fractions such as 0.1 to binary or hex, use the Decimal Base Converter (repeating digits, error and steps included).
How to Use
Enter a value
Enter the number you want to convert. Negative numbers are also supported.
Auto convert
The value is automatically converted to other bases as you type.
Set options
Configure bit width, prefix display, and 4-digit separator.
About This Tool
A free online tool to convert between binary, octal, decimal, and hexadecimal. Includes advanced features like two's complement, bit width, and programming prefixes.
Features
- Convert 4 bases at onceBinary, octal, decimal, and hex displayed simultaneously.
- Negative numbers supportCorrectly convert negative numbers using two's complement.
- Bit width selectionSpecify 8/16/32/64 bits to match programming data types.
- Programmer-friendly displayPrefix (0b, 0o, 0x) and 4-digit separator options.
Use Cases
- Number conversion in programming
- CSS color code verification
- Bit operations and two's complement
- Unix file permission checking
- Digital circuits and embedded development
FAQ
Can I use uppercase or lowercase for hex A-F?
What is two's complement?
Why specify bit width?
What are prefixes?
Feedback
Missing a feature, or getting a result that looks wrong? Let us know — we improve our tools based on your feedback.