Home / Conversion / Base Converter

Base Converter

Four base rows and an Ignore-case switch, so a0 and A0 read as the same hexadecimal number.

Base Converter — Runs locally
How to use

Using this tool

Base Converter converts a number between binary, octal, decimal and hexadecimal as soon as you type it. All of the work on Base Converter happens in this tab, so the values you enter or the files you open never travel to a server.


Fields on this page

Base Converter offers 4 editable fields: Binary (Base 2), Octal (Base 8), Decimal (Base 10) and Hexadecimal (Base 16). On Base Converter each of the 4 boxes is a starting point, so you never pick a source and a target separately; the remaining 3 settle from the same base calculation as soon as a digit changes.


How to use Base Converter

  1. Click into the Binary (Base 2) field on Base Converter; it already holds a starting value that you can overwrite.
  2. Type the figure you know into the Hexadecimal (Base 16) box on Base Converter, using a decimal point when the amount is fractional.
  3. Watch the Octal (Base 8) field refresh on Base Converter without pressing Enter or a Convert button.
  4. Copy the number from the Decimal (Base 10) field, or edit another box on Base Converter to run the same conversion the other way.

A worked example

Type 1010 into the Binary field and Decimal reads 10 while Hexadecimal reads a, which is exactly the register value printed in the firmware note you are checking.


A closer look at Base Converter

The four fields share one integer value, so binary, octal, decimal and hexadecimal always agree no matter which box you edit. Each hexadecimal digit stands for four binary bits, which is why a byte is written with two hex digits and why 1010 becomes a. The octal field groups bits in threes instead of fours, so the same value takes a different number of digits there.

A leading zero is not required in the octal field, and pasting a value with one still converts correctly. Long bit patterns are easier to verify by reading the hexadecimal row first and then checking the binary row in groups of four.


Putting Base Converter to work

Base Converter exposes four rows only - Binary (Base 2), Octal (Base 8), Decimal (Base 10) and Hexadecimal (Base 16) - and any row can be the entry point. Hexadecimal input is read without regard to case, so a0 and A0 both resolve to the decimal value 160.

The binary row grows fastest: ten bits reach 1,023, and by the twentieth bit the same field is already past one million. Correcting one digit in the Decimal (Base 10) row repairs the other three rows in the same keystroke.


Where Base Converter helps

  • Reading register values in embedded and firmware work.
  • Checking colour codes written in hexadecimal.
  • Teaching number systems with instant feedback.

Precision and limits

  • Hexadecimal accepts both upper and lower case letters, so ff and FF give the same decimal value.
  • A Clear button empties all four fields so the next conversion starts from a blank page.
  • Only whole numbers are supported; fractional values after the radix point are not converted.

Frequently asked questions

Can it convert from hexadecimal back to binary?

Yes. Type into the Hexadecimal field and Binary, Octal and Decimal update immediately.

Does letter case matter in hexadecimal?

No, because the hex field is case-insensitive: a and A are treated as the same digit.

What happens if I type an invalid digit?

Digits outside the selected base are rejected, so binary only accepts 0 and 1.

Are negative numbers supported?

The four fields handle non-negative integers; a minus sign is not part of the accepted input.