ToolKitToolKit工具箱

0b Number Base Converter

Binary / octal / decimal / hex convert

  • Binarybase 2—
  • Octalbase 8—
  • Decimalbase 10—
  • Hexbase 16—

🔒 Everything runs locally in your browser. Your data is never uploaded to any server.

About this tool

This base converter translates numbers between binary, octal, decimal and hexadecimal. The same value has different notations in computing: decimal 255 is hex FF and binary 11111111. Reading memory, color values, permission bits or doing bitwise work often means hopping between these bases.

Enter a number, say what base it is in, and get the result in the others. Conversion runs locally in your browser with no network needed — handy for development, embedded debugging and learning the fundamentals.

How to use

  1. Enter the number you want to convert.
  2. Select the base it is currently in (e.g. hexadecimal).
  3. Read the results automatically computed in the other bases.
  4. Click copy on the representation you need.

When to use it

  • Converting hex values (colors, addresses) to decimal to verify them.
  • Inspecting binary bits when debugging bitwise operations and masks.
  • Reading Unix file permissions written in octal (e.g. 755).
  • Practicing base conversion while learning computer fundamentals.
  • Working with protocol or register fields written in hexadecimal.

FAQ

Can it convert negative numbers or fractions?

Standard base conversion is most straightforward for non-negative integers. Negatives involve two's complement and fractions involve fixed/floating point, whose notation depends on context.

Should hexadecimal include the 0x prefix?

Prefixes like 0x, 0b, 0o are just base markers. What matters is the digits themselves — enter the plain number and set the base via the option.

Why does hexadecimal contain letters?

Hex has 16 digits; values 10–15 are written as A–F, which is why letters appear. Decimal uses only 0–9.