Development

Number Base Converter

Convert integers between binary, octal, decimal and hexadecimal.

Examples

Start from a common integer format.

Input

Enter an integer to convert.

Formatting

Choose how converted values are displayed.

Converted values

View the same integer represented in multiple number bases.

Binary

Base 2

0b1111 1111

Octal

Base 8

0o3 77

Decimal

Base 10

255

Hexadecimal

Base 16

0xFF

Number details

Inspect the detected base and integer size.

Detected base

Decimal

Bits required

8

Input digits

3

Sign

Non-negative

Conversion is performed locally in your browser. Values are validated against JavaScript's safe integer range to prevent precision loss.

About this tool

What is Number Base Converter?

Convert integer values between common number bases with automatic prefix detection.

Features

Built for fast developer workflows

  • Binary conversion.
  • Octal conversion.
  • Decimal conversion.
  • Hexadecimal conversion.
  • Automatic base detection.
  • Negative integers.
  • Digit grouping.
  • Hex uppercase/lowercase.
  • Safe integer validation.
  • Runs locally.

Frequently asked questions

Questions about Number Base Converter

Does it support hexadecimal prefixes?

Yes. Prefixes like 0x, 0b and 0o are detected automatically.

Can I convert negative numbers?

Yes. Signed integers are supported.

Does this upload my data?

No. Everything happens locally in your browser.

Related tools