Binary / Octal / Decimal / Hex Converter
Convert numbers between binary, octal, decimal, and hexadecimal. Supports huge numbers via BigInt. Handles 0b, 0o, 0x prefixes.
Runs 100% in your browser — nothing is uploaded.Use this in a chain
Input base
- Binary
11111111(base 2) - Octal
377(base 8) - Decimal
255 - Hexadecimal
FF(base 16)
How to use
- 1Type a number in any base
The tool auto-detects 0b (binary), 0o (octal), 0x (hex) prefixes. Or pick the input base manually.
- 2Read all four bases at once
Binary, octal, decimal, and hexadecimal update live in one panel.
- 3Copy the value you need
Each row has its own copy button.
Examples
Decimal 255
Input
255
Output
Binary: 11111111 · Octal: 377 · Decimal: 255 · Hex: FF
The classic byte boundary. FF hex is why "white" is #FFFFFF.
Hex color parsing
Input
0x6366F1
Output
Decimal: 6516465 · Binary: 011000110110011011110001
The 24 bits behind our accent color, straight from hex.
Big integer (128-bit)
Input
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Output
Decimal: 340282366920938463463374607431768211455
BigInt-backed — no precision loss, no scientific notation.
Frequently asked
What is the max value?
Any integer that fits in JavaScript BigInt — effectively unlimited. Handles 128-bit values and beyond without loss.
Are prefixes required?
No — the tool strips 0b (binary), 0o (octal), 0x (hex) if present but doesn't require them. Just enter the digits.
Can I convert non-integers?
Not yet — floating-point base conversion is a distinct problem and gets its own tool later.
Related tools
- Hash GeneratorInstantly compute MD5 and SHA-family hashes of any text. All hashing happens in
- Universal Unit ConverterConvert between units across 8 dimensions: length, mass, volume, time, area, dig
- JSON FormatterFormat, validate, and minify JSON in your browser. See parse errors with line/co
- .env File ParserParse a .env file and see it as a JSON object. Handles comments, quoted values,
- Credit Card ValidatorValidate credit card numbers with the Luhn algorithm and detect the brand: Visa,
- Cron BuilderPick a preset or enter your own fields to build a cron expression. Includes a pl