← Takora

Base Converter

BaseValue

Convert Numbers Between Binary, Octal, Decimal, Hexadecimal, and Base-36

Software developers, network engineers, and students constantly switch between number systems. A subnet mask lives in binary, a color code in hex, a file permission in octal, and everyday arithmetic in decimal. Doing these conversions by hand invites mistakes, especially when values grow past the range a pocket calculator can hold.

This base converter handles binary (base-2), octal (base-8), decimal (base-10), hexadecimal (base-16), and base-36 in both directions. It uses BigInt arithmetic internally, so it stays exact for integers far beyond the 53-bit limit of ordinary JavaScript numbers. Paste a value, pick a base, and read every other representation instantly — no plugins, no server round trip, and no signup required.

How to Convert Between Number Bases

  1. Type or paste the number you want to convert into the input field.
  2. Choose the base of the value you entered, such as hex for FF or binary for 1010.
  3. Press the convert button or wait for the live update to render.
  4. Read the results across the binary, octal, decimal, hex, and base-36 output panels.
  5. Swap the input and output bases and convert again when you need the reverse direction.
  6. Copy any result with the copy button instead of retyping long digit strings.

Example Conversions

A developer debugging a color value pastes 7FFF00 as hex. The tool returns the binary, octal, decimal, and base-36 equivalents in one pass.

InputBaseOutput
7FFF00hexbinary 111111111111111100000000, decimal 8388352
101101binarydecimal 45, hex 2D, octal 55
755octaldecimal 493, binary 111101101

Handling Huge Integers with BigInt

Values like 9007199254740993 exceed what floating-point numbers represent exactly. This tool parses input as BigInt and formats output as BigInt, so digits never round silently. For example, a 64-bit hash fragment such as 18446744073709551615 converts to hex FFFFFFFFFFFFFFFF with every digit intact. The same guarantee applies in the other direction: paste a long hexadecimal string and read its exact decimal value without scientific notation or truncation.

Tips for Accurate Conversions

When to Use This Tool

Frequently Asked Questions

What bases does this converter support?

It supports binary (base-2), octal (base-8), decimal (base-10), hexadecimal (base-16), and base-36, in any direction between them.

Why do I need base-36?

Base-36 packs numbers into short, URL-safe strings using digits 0-9 and letters A-Z, which is useful for invite codes and short links.

Does it handle negative numbers?

Yes, negative integers convert normally; the minus sign is preserved across every base.

What is BigInt and why does it matter?

BigInt is a numeric type that represents arbitrarily large integers exactly, so values above 2^53 - 1 do not lose precision during conversion.

How do I convert a decimal to binary by hand?

Divide the number by 2 repeatedly and collect the remainders from last to first; for example, 13 becomes 1101 in binary.

Are leading zeros preserved in the output?

No, output is normalized without leading zeros, so the value is shown in its canonical shortest form.

Can I convert fractional numbers?

This tool converts integers; fractional values such as 3.5 are outside its scope because bases represent fractions differently.

Is my input sent to a server?

No, all conversion happens locally in your browser, so values never leave your device.