Skip to content
Sumly

Number Base Converter

Convert numbers between binary, octal, decimal and hexadecimal.

In

Negative numbers are allowed with a leading minus

Out

Binary11111111
Octal377
Decimal255
HexadecimalFF

How Number Base Converter works

Each base uses a set of digits: binary uses 0 and 1, octal uses 0 to 7, decimal uses 0 to 9, and hexadecimal adds A to F for ten to fifteen.

The input is read digit by digit into an exact integer, then written out in each of the four bases.

Hexadecimal is shown in capitals, a common convention for colours and memory addresses.

Worked example

The decimal number 255 is 11111111 in binary, 377 in octal and FF in hexadecimal. Those are the same value written four different ways.

The tool above opens with these numbers. Change them to run your own scenario, or press Reset to come back to this example.

Frequently asked questions

Generate cryptographically secure passwords and secrets with real-time Shannon entropy metrics.

Validate, beautify and minify JSON with precise error messages.

Encode and decode Base64 safely — UTF-8 correct, URL-safe optional.

Test patterns against live text with matches and groups listed.

Percent-encode parameters or whole URLs — and decode them back.

Generate RFC 4122 v4 UUIDs in bulk, with formatting options.

  • binary converter
  • hex to decimal
  • base converter
  • octal
  • number systems