All Developer

Number Base Converter

Convert between binary, octal, decimal, hex.

number-base-converter.local
From base
Enter a value to convert across bases.

Overview

Converts a number between bases, such as binary, octal, decimal, and hexadecimal. Useful for low-level programming, working with colors or bit flags, and any time you need the same value in a different base. It runs in your browser.

How it works

The same quantity can be written in different number systems, or bases. Decimal uses ten digits, binary uses two, octal eight, and hexadecimal sixteen (0 to 9 plus A to F). The tool reads the number you enter in its base and re-expresses the identical value in the others, doing the conversion arithmetic for you.

How to use it

  1. Enter your number and select its base.
  2. The tool converts it to the other bases.
  3. Read the equivalent values.
  4. Copy the representation you need.

Examples

Decimal to hex and binary

The decimal number 255 is FF in hexadecimal and 11111111 in binary.

Hex color to decimal

Convert a hex value into decimal when you need its numeric form.

FAQ

What is a number base?
The number of distinct digits a system uses. Decimal is base 10, binary base 2, hexadecimal base 16.
Why is hexadecimal common in programming?
It maps neatly onto binary (each hex digit is four bits), so it is a compact way to write binary values.
Does converting change the value?
No. It is the same quantity written differently, like the same amount in different currencies of notation.
Is my data uploaded?
No. The conversion runs in your browser.

Related tools

Embed this tool

Paste this snippet to put the tool on your own site. It runs entirely in the visitor's browser, the same as it does here.

<iframe src="https://tooldok.com/embed/number-base-converter/" title="Number Base Converter by Tooldok" width="100%" height="560" style="border:1px solid #16130d;border-radius:16px;max-width:720px" loading="lazy"></iframe> <p style="font:13px sans-serif"><a href="https://tooldok.com/tools/number-base-converter/" target="_blank" rel="noopener">Number Base Converter</a> by <a href="https://tooldok.com/" target="_blank" rel="noopener">Tooldok</a></p>