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
- JSON FormatterBeautify, minify, and validate JSON with precise error locations.
- Base64 Encoder / DecoderEncode and decode Base64 for text and files, including URL-safe.
- UUID GeneratorGenerate v4 and time-ordered v7 UUIDs in bulk, ready to copy.
- Regex TesterTest regex with live highlighting, capture groups, and flags.
- YAML ValidatorValidate YAML and convert to and from JSON.
- Case ConverterConvert between camelCase, snake_case, kebab-case, and more.
- HTML Entity EncoderEscape and unescape HTML entities and special characters.
- URL EncoderPercent-encode and decode URLs and query parameters.
- Color ConverterConvert colors between HEX, RGB, and HSL with a live preview.
- Unix Timestamp ConverterConvert Unix epoch timestamps to dates and back.
- JWT DecoderDecode a JWT's header and payload with readable claim times.
- Hash GeneratorGenerate MD5, SHA-1, SHA-256, and SHA-512 hashes from text.
- JSON ↔ CSV ConverterConvert JSON to CSV and CSV back to JSON.
- Cron Expression ExplainerTranslate a cron expression into plain English.