Skip to content
Home / Number Base Converter

Number Base Converter

What are number bases?

A number base (or radix) determines how many unique digits are used to represent numbers. Decimal (base 10) is what humans use daily; binary (base 2) is how computers store data at the hardware level; hexadecimal (base 16) is a compact way to represent binary data, commonly seen in color codes and memory addresses; octal (base 8) appears in some Unix file permission notations.

When would I use this?

  • Converting a hexadecimal color code or memory address to decimal for calculations.
  • Understanding what a binary flag or bitmask value looks like in decimal or hex.
  • Converting a Unix file permission octal value (like 755) to see it in another base.

How it works

Conversion uses JavaScript's built-in number parsing and formatting for each base, entirely in your browser. Type a number into any field and the others update instantly.

Frequently asked questions

Binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16) — the bases most commonly used in programming and computer science.
Yes, negative decimal numbers are converted correctly, shown with a minus sign in each base.
Converting a hexadecimal color code or memory address to decimal, or checking what a binary flag value looks like in hex when debugging low-level code.
The converter handles standard JavaScript-safe integers. Extremely large numbers (beyond 2^53) may lose precision, as with any browser-based calculation.