Number Base Converter

Convert between binary, octal, decimal and hexadecimal.

Runs in your browser Developer Tools Free · No account

Input

Processed locally

This tool runs entirely in your browser. The data you paste or load is never uploaded.

Result

Enter your input, then run the tool.

About this tool

Converts an integer between bases 2 to 36 and always shows the binary, octal, decimal and hexadecimal forms side by side. Large values are handled exactly with BigInt, so 64-bit identifiers keep every digit.

How to use it

  1. Enter the number and choose the base it is written in.
  2. Press Convert.
  3. Copy the representation you need from the table.

Frequently asked questions

Can I paste values with a 0x or 0b prefix?
Yes. The prefix is removed when it matches the selected base, and underscores or spaces used as digit separators are ignored.
Are negative numbers supported?
Yes. A leading minus sign is kept in every base; two’s complement is not applied.

Keep going

More in this category