Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal instantly in your browser. Free online base converter with signed/unsigned support.
Enter the values below, then press Calculate (or press Enter). The calculator updates your results instantly. Try different values to see how your inputs change the outcome.
- Number — enter a text value. A typical Number would be e.g. 255.
- From base — enter a choice from the options.
- To base — enter a choice from the options.
- Review your results — the key output is highlighted, with supporting figures below.
Loading calculator…
Results
| Detail | Value |
|---|---|
| Binary | |
| Octal | |
| Decimal | |
| Hexadecimal |
What is this calculator for?
Convert any integer between binary, octal, decimal, and hexadecimal.
How to Use This Calculator
Enter the values below, then press Calculate (or press Enter). The calculator updates your results instantly. Try different values to see how your inputs change the outcome.
- Number — enter a text value. A typical Number would be e.g. 255.
- From base — enter a choice from the options.
- To base — enter a choice from the options.
- Review your results — the key output is highlighted, with supporting figures below.
What You'll Need
- Number
- a text value · required
- From base
- a choice from the options (Binary (2), Octal (8), Decimal (10), Hexadecimal (16)) · optional
- To base
- a choice from the options (Binary (2), Octal (8), Decimal (10), Hexadecimal (16)) · optional
About This Calculator
Number bases change how a value is written. Binary is base 2, octal base 8, decimal base 10, and hexadecimal base 16.
This converter parses your input in the chosen base and shows the equivalent in all four, so you can read off any representation at once. It accepts optional 0b/0o/0x prefixes for convenience.
Conversion runs entirely in your browser.