Skip to content
Math

Base converter — binary, octal, decimal and hexadecimal

Convert an integer between decimal, binary, octal, hexadecimal, base 32 and base 36, then copy the representation you need.

Runs in your browser — your input is not uploaded to ToolsNow.

Binary (base 2)11111111
Octal (base 8)377
Decimal (base 10)255
Hexadecimal (base 16)FF
Base 32 (base 32)7V
Base 36 (base 36)73
Decimal value: 255 · 8 bits

How to use

  1. Enter the integer. For example, enter 255. Spaces and underscores are ignored; fractional values are not supported.
  2. Choose its input base. With Decimal selected, 255 becomes FF in hexadecimal and 11111111 in binary. A prefix such as 0x is removed, but does not select the base for you.
  3. Copy a result. Each base has its own copy button; Copy result collects all the representations.

Questions

How can I check a binary value?

Read powers of two from right to left. Binary 1010 is 1×8 + 0×4 + 1×2 + 0×1 = 10 in decimal.

Why is a digit rejected?

The input base determines which digits are allowed. Binary accepts only 0 and 1; hexadecimal accepts 0–9 and A–F. Letters are case-insensitive, so ff and FF both mean 255 in base 16.

Can I convert a very large ID?

This converter uses ordinary JavaScript numbers, not arbitrary-precision integers. Values whose magnitude exceeds 9,007,199,254,740,991 may be rounded even if a result appears. Do not use it to preserve larger numeric IDs exactly.

Published by ToolsNow. How tools and sources are checked · Report a problem

Read more

Related tools