Binary, Decimal & Hex Converter
Type a number in binary, octal, decimal or hexadecimal and see it in all four bases at once. It handles very large values exactly and accepts prefixes such as 0x, 0b and 0o.
Binary (base 2)
11111111
Octal (base 8)
377
Decimal (base 10)
255
Hexadecimal (base 16)
FF
How to use it
- Type your number.
- Choose the base it is written in.
- Read the result in binary, octal, decimal and hexadecimal.
Frequently asked questions
How do I convert binary to decimal?
Add up the powers of two for each 1 bit, from the right. 1011 is 8 + 2 + 1 = 11.
How do I convert decimal to hexadecimal?
Divide by 16 repeatedly and read the remainders from the bottom, using A to F for 10 to 15. 255 is FF.
Can it handle big numbers?
Yes. It uses arbitrary precision integers, so long values stay exact.
Does it support negative numbers or fractions?
No. It converts non-negative whole numbers.
Related tools
Base64 Encoder & Decoder
Encode text or files to Base64 and decode Base64 back, with URL-safe and UTF-8 support. Runs in your browser.
Hash Generator (MD5, SHA-256, SHA-512)
Generate MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC-32 hashes of text or files, with HMAC and a hash checker.
Color Converter & Contrast Checker
Convert colours between HEX, RGB, HSL, HSV, HWB, CMYK and OKLCH, check WCAG contrast and make tints and shades.
Regex Tester
Test JavaScript regular expressions live: see matches highlighted, capture groups and a replace preview.
These tools run entirely in your browser and are provided free, without warranty. Check important results before using them in production.