Base Converter

Instantly convert numbers between binary, octal, decimal, hexadecimal, and any base from 2 to 36.

Arbitrary Base Conversion (Base 2 to 36)

0Bits
0Bytes required
0Decimal Digits
Value Range

Calculations use BigInt, so very large numbers exceeding JavaScript's safe integer limit (2⁵³) are converted without loss of precision. Digit separators like _, spaces, and commas are automatically ignored. This tool recognizes 0x, 0b, 0o prefixes, and negative signs (-). Decimal points are not supported (integers only).

What is the Base Converter?

Need to convert between binary, decimal, or hexadecimal? This base converter shows you the binary, octal, decimal, and hexadecimal equivalents simultaneously as you type. Paste values like a developer's `0xCAFEBABE` or a sysadmin's `0o755` permissions—the 'Auto-detect' feature intelligently recognizes `0x`, `0b`, and `0o` prefixes so you don't have to change settings. It also supports any base from 2 to 36 and handles huge 64-bit integers with perfect precision. All conversions happen instantly in your browser; nothing you enter is sent to a server.

How to use

  1. Enter the number you want to convert into the 'Enter value' field. It supports formats like `0xFF`, `0b1011`, and negative numbers.
  2. As you type, the converted values instantly appear in the 'Binary', 'Octal', 'Decimal', and 'Hexadecimal' fields below.
  3. The 'Input Base' is set to 'Auto-detect (0x·0b·0o)' by default, recognizing prefixes automatically. You can also manually select a different base if needed.
  4. Click the 'Copy' button next to any result to copy it to your clipboard.
  5. To convert to a specific base like Base 32, use the 'Arbitrary Base Conversion' section and select your desired 'Output Base'.
  6. View useful stats below the results, including the number of 'Bits', 'Bytes required', and the 'Value Range' (e.g., 'Within 32-bit').

Frequently asked questions

Can it convert very large numbers?

Yes, this tool uses BigInt to accurately convert extremely large integers without any loss of precision. It handles values well beyond the standard 64-bit range, making it reliable for complex calculations.

Can I input numbers with prefixes like '0x'?

Absolutely. The default 'Auto-detect (0x·0b·0o)' setting automatically recognizes prefixes for hexadecimal (`0x`), binary (`0b`), and octal (`0o`). You can paste values directly from code or documents without modification.

Does this converter handle decimal points or fractions?

No, this tool is designed for integer conversion only, which is ideal for working with data like memory addresses, color codes, or bitmasks. Inputting a number with a decimal point will show an error.

Are the numbers I enter sent to a server?

No. All calculations are performed entirely within your web browser. No data you enter is ever transmitted or stored on our servers, ensuring your information remains completely private. The tool even works offline.