EVERYDAY UTILITIES / FREE BROWSER TOOL

Number base converter

Convert signed integers between binary, octal, decimal, and hexadecimal.

Files are processed in this browser and are not uploaded to YYY Tools.Details
Opening workspace

About Number base converter

Use the number base converter for signed whole numbers in binary, octal, decimal, or hexadecimal. It can convert large decimal integers to hexadecimal with BigInt instead of floating-point arithmetic. Enter digits without 0x, 0b, separators, or decimal fractions.

How to convert an integer between number bases

  1. Enter the signed integer without a radix prefix.
  2. Choose the input and output bases, then select Process.
  3. Copy the result, which uses lowercase letters and no prefix.

A practical example

Input
255
Result
ff

The decimal integer 255 is ff in base 16; no floating-point rounding is involved.

Supported input and limitations

  • Input is limited to 4,096 characters and the four offered bases. Fractional numbers, scientific notation, digit separators, and radix prefixes are rejected.
  • Negative values use a leading minus sign, not a fixed-width two's-complement representation. Leading zeros and a leading plus sign are not preserved.

Processing happens on your device. Read about local processing and optional workspace recovery.

Frequently asked questions

Can I convert integers larger than JavaScript's safe number range?

Yes. Parsing and conversion use BigInt, within the stated input-length limit, rather than Number.

Does a negative binary result use two's complement?

No. It is a mathematical signed integer with a minus sign. Fixed-width machine representations require an explicit bit width and separate handling.

Related tools