Number Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal. Handles very large values with BigInt, instantly and client-side.

// basefrom base 10○ ready
Input base
Value (base 10)
  • Enter a value to convert across bases.

About this number base converter

Developers regularly switch between number systems — reading a hex colour or memory address, setting binary flags, or checking an octal file permission. Pick the base of your input, type the value, and see it in binary, octal, decimal, and hexadecimal instantly.

Common conversions

  • Binary to decimal and decimal to binary
  • Hex to decimal for colours and addresses
  • Hex to binary for bit-level work
  • Decimal to hexadecimal

Frequently asked questions

Which bases can I convert between?
Enter a value in binary (base 2), octal (base 8), decimal (base 10), or hexadecimal (base 16), and it is converted to all four at once.
Does it handle very large numbers?
Yes. Conversion uses JavaScript BigInt, so it stays exact even for numbers far larger than a normal 64-bit integer.
Can I paste values with prefixes like 0x or 0b?
Yes. A leading 0x (hex), 0b (binary), or 0o (octal) prefix is accepted and ignored, and underscores or spaces used as separators are stripped.

// More tools