JSON Parser

Binary, Decimal, Hex & Octal Number Converter

Enter a number, choose the base it is written in (2 to 36), and see it in binary, octal, decimal, hexadecimal and base 36 at once. It uses big integers, so even very large values convert exactly. Everything runs in your browser.

How to convert between number bases

  1. Select the input base from the dropdown (for example Base 2 for binary or Base 16 for hex).
  2. Type the number. Prefixes such as 0x, 0b and 0o are accepted for the matching base, and spaces, commas and underscores are ignored.
  3. Read the other bases below and use Copy on the one you need.

Examples

DecimalBinaryOctalHexBase 36
10101012AA
25511111111377FF73
1024100000000002000400SG
40951111111111117777FFF35R
655351111111111111111177777FFFF1EKF

What are number bases?

A base (or radix) is how many digits a number system uses. Decimal uses ten (0–9), binary uses two (0 and 1), octal uses eight (0–7) and hexadecimal uses sixteen (0–9 plus A–F). The same value can be written in any of them: 255 is 11111111 in binary, 377 in octal and FF in hex. Bases above 10 use letters for the extra digits, up to Z for base 36.

Where each base is used

  • Binary: how computers store data, bit flags and bit masks.
  • Octal: Unix file permissions (see the chmod calculator).
  • Hexadecimal: colors (#FF8800), memory addresses, byte values, hashes and Unicode code points.
  • Base 36: short IDs and compact URLs, since it uses only digits and letters.

Limits and tips

  • It converts whole numbers. Negative integers work with a leading minus sign; fractions are not supported.
  • It shows the plain signed value, not a two's-complement representation, so a negative number shows as -1010 rather than a fixed-width bit pattern.
  • If you get an error such as “"8" is not a valid digit in base 8”, the number contains a digit that doesn't exist in the selected base.

Related tools

Turn hex values into colors with the color converter, encode bytes as text with Base64, or convert dates with the timestamp converter.

Frequently asked questions

How do I convert binary to decimal?
Choose base 2 as the input base, type the binary number (for example 1010), and read the decimal result: 10.
Does it handle large numbers?
Yes. Values are processed as big integers, so there is no 53-bit precision limit like ordinary JavaScript numbers.
Does it support negative numbers or fractions?
Negative integers are supported with a leading minus sign. Fractions are not; the tool converts whole numbers. Everything runs in your browser — nothing you enter is uploaded to a server.
Handles JSON files up to 20MB smoothly