EzyTools

Number Base Converter

Convert between binary, octal, decimal, hex and any base up to 36. Handles very large numbers.

Loading…

Runs entirely in your browser. Nothing you enter is uploaded or stored on a server.

About this tool

The same number looks different in each base: 255 in decimal is FF in hex and 11111111 in binary. This tool shows all the common bases at once and accepts any base from 2 to 36 when you need something unusual.

How to use

  1. 1Enter the number.
  2. 2Set which base it is in.
  3. 3Read the other bases and copy what you need.

When you need it

  • Reading a hex value in code or a log.
  • Turning a permission mask into binary to see its bits.
  • Working with hex colors or memory addresses.

Frequently asked questions

Why is hexadecimal used in programming?

Each hex digit maps to exactly four binary digits, so one byte is two hex digits. That makes binary data far shorter and easier to read than a row of ones and zeros.

What is the highest base supported?

36, because the notation uses ten digits and twenty-six letters. Base64 is a different thing — a way of encoding data rather than writing numbers — and has its own tool.

Are negative numbers and fractions supported?

Negatives yes. Fractions are not, because their representation varies between systems and needs precision decisions that a general converter should not make for you.

Related tools