Back

Number-base converter

Encoding

Loading

Loading tool

Preparing the tool. The remaining time is not yet known.

All processing for this tool happens in your browser. Your input is not sent to a server.

About this tool

Convert signed integers exactly between binary, octal, decimal and hexadecimal with BigInt.

Common uses

  • Convert signed integers exactly between binary, octal, decimal and hexadecimal with BigInt.
  • Select the input base and enter integer digits, optionally with a sign and the matching 0b, 0o or 0x prefix.

How to use it

  1. 1.Select the input base and enter integer digits, optionally with a sign and the matching 0b, 0o or 0x prefix.
  2. 2.Convert once to see all four bases; hexadecimal output uses uppercase letters.

Worked example

Input and result

Base 16: FF
Base 10: 255

Select hexadecimal as the input base.

Limits and notes

  • Fractions, digit separators and digits outside the selected base are rejected. Negative values keep a minus sign rather than a fixed-width two’s-complement representation.

Frequently asked questions

What does this tool do?

Convert signed integers exactly between binary, octal, decimal and hexadecimal with BigInt.

What should I check before using the result?

Fractions, digit separators and digits outside the selected base are rejected. Negative values keep a minus sign rather than a fixed-width two’s-complement representation.

Related tools