Skip to content

Your everyday toolkit

Converters

Number Base Converter

Convert nonnegative integers exactly between decimal, binary, hexadecimal and octal, including values larger than JavaScript’s safe integer range.

Open tool Free · No account needed

Conversions

Binary
0b11111111
Octal
0o377
Decimal
255
Hexadecimal
0xFF

Using Number Base Converter well

Convert a nonnegative integer exactly among binary, octal, decimal and hexadecimal.

Example to try

Enter decimal 255 to obtain FF in hexadecimal and 11111111 in binary. Try a value larger than JavaScript's safe integer range to preserve all integer digits.

What to check before relying on the result

Only bases 2, 8, 10 and 16 are supported. Digits must match the selected base. Fractions, negative numbers and exponential notation are rejected rather than partially parsed.

How to use Number Base Converter

SEE IT IN ACTION01 / 03
Actual workspaceYUQELO
Number Base Converter actual workspace and controlsView largerReal workspace preview

A preview of the actual tool workspace

01

YOU’RE EXPLORING

Enter a number

THE ROADMAP

A few steps.
A whole new result.

03STEPS
GOOD QUESTIONS. CLEAR ANSWERS.

Frequently Asked Questions

The useful details, before you get started.

YOUR QUESTIONS, ANSWEREDClick to explore

THE ANSWER

Binary (base 2), Octal (base 8), Decimal (base 10), and Hexadecimal (base 16).

Choose any question to see the details.

Related Tools