Skip to content
Max Tamilan

Number base converter

Type a whole number and choose its base. It is shown in every other base.

Binary
Type a whole number
Octal
—
Decimal
—
Hexadecimal
—
Base 36
—

Add this tool to your website

Paste this code into your page. The tool runs in your visitors' browsers: what they type is not sent to you or to us. No cookies, no tracking.

Preview ↗

Your input never leaves your device. 100% private.

Ratings and reviews

Save to favourites

Average rating

0.0 / 5

No ratings yet. Be the first to rate this tool.

Ratings by stars

  • 5 5 stars 0
  • 4 4 stars 0
  • 3 3 stars 0
  • 2 2 stars 0
  • 1 1 star 0

Log in to save this tool, rate it and write a review. Log in Create an account

What people say

  • No reviews yet.
⚑ Report a problem

Wrong answer, a bug or a bad translation? Tell us. You do not need an account.

Do not paste personal data or the text, numbers or files you used in the tool. Describe the problem instead.

How to use the Number base converter

  1. Type the number. Prefixes like 0b, 0o and 0x, spaces and underscores are fine.
  2. Choose the base it is written in.
  3. Read it in binary, octal, decimal, hexadecimal and base 36.

Worked example

255 in decimal is 1111 1111 in binary, 377 in octal and FF in hexadecimal.

How it is worked out

The number is read digit by digit into an exact big integer, then written in each base. Binary and hexadecimal are grouped in fours for easy reading.

Limits

  • Whole numbers only (no fractions), up to 1,000 digits.

Privacy

Everything happens in your browser. What you type or choose is not sent to us, stored or logged.

Command palette

↑ ↓ move Enter open Esc close

Keyboard shortcuts

Ctrl + K
Open search and commands
/
Open search and commands (when not typing)
?
Show this list (when not typing)
Esc
Close a window

On a Mac, use ⌘ instead of Ctrl.