Number Base Converter – Binary, Decimal & Hexadecimal

Convert numbers between binary, octal, decimal and hexadecimal.

Number Base Converter What is this? ↓
About the Number Base Converter

What is the Number Base Converter?

A number base converter translates a value between binary, octal, decimal and hexadecimal.

Why use this calculator?

Programmers and digital-electronics students switch bases constantly to read memory addresses, bit masks and colour codes.

How to use it

  1. Type the number to convert (prefixes like 0x or 0b optional).
  2. Choose the base the number is written in.
  3. Choose the base you want and read the result.

Formula

A number in base b uses digits 0 to b−1 and is summed as digit × b^position.
Hexadecimal digits A–F stand for the values 10–15.
Frequently Asked Questions
What is FF in decimal?
Hexadecimal FF equals 255 in decimal.
Why is binary used in computers?
Digital circuits have two reliable states (on and off), so they represent data as base-2 digits.
How precise are the conversions?
Conversions use standard, internationally defined factors and are rounded for display. They are accurate to the number of digits shown.
Can I convert back and forth without losing accuracy?
Yes. Enter the original value to get an exact inverse conversion; avoid chaining rounded results if you need maximum precision.
Which measurement system is used?
Both metric (SI) and US customary / imperial units are supported and clearly labelled.
Is this calculator free to use?
Yes. Every calculator on this site is completely free, with no hidden fees, no subscriptions and no limits on how many times you can use it.
How accurate are the results?
We use standard, widely accepted formulas and calculate in your browser using double-precision arithmetic. Results are rounded for readability, so treat them as reliable estimates rather than a guarantee. Real-world factors can vary the true figure.
Can I add this calculator to my own website?
Yes. Open this calculator page and use the "Add to your website" box in the sidebar to copy a ready-made iframe snippet, then paste it into any HTML page.
Does it work on a phone or tablet?
Yes. The layout is fully responsive, so it works on desktops, laptops, tablets and mobile phones, and every input adapts to touch screens.
Is the information I type kept private?
Yes. All calculations run locally in your browser. Nothing you enter is uploaded, stored or shared with anyone.

Related reading: Guides & How-tos

All articles →