Binary, octal, decimal and hex converter
Convert numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36, with no size limit.
Grouped binary
- Bits
- —
- Bytes
- —
- Set bits
- —
- ASCII
- —
How it works
Type a number in any field and the others update instantly. It works with integers of any size thanks to BigInt, so you can convert memory addresses, hashes or huge identifiers without losing precision.
You can also pick a custom base between 2 and 36 and see the number grouped in 4-bit blocks for easier reading.
Frequently asked questions
How do you convert binary to decimal?
Multiply each digit by 2 raised to its position, counting from 0 on the right, and add the results. 1011 = 8 + 0 + 2 + 1 = 11.
Why is hexadecimal used in programming?
Because each hex digit is exactly 4 bits, so one byte is written with two digits (00 to FF).
Related tools
JSON validator and formatter online
Validate, beautify, minify and sort JSON online. Shows the exact error line and column. Free, and your data never leaves your browser.
Open toolBase64 encode and decode online
Encode and decode Base64 text with full UTF-8 support (accents, emojis), URL-safe variant, and file or image to Base64 conversion.
Open toolURL encode and decode online
Encode and decode URLs and query parameters (percent-encoding), and break a URL down into protocol, host, path and parameters.
Open toolUUID generator online (v4, v7 and ULID)
Generate UUID v4, time-ordered UUID v7 and ULID, one or thousands at a time. Uppercase, no hyphens and a UUID validator.
Open toolMD5, SHA-1, SHA-256 and SHA-512 hash generator
Compute the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hash of text or a file, in hex or Base64. Ideal for verifying downloads.
Open toolJWT decoder online
Decode a JSON Web Token and read its header, payload, and issued-at and expiry dates in a readable format. The token never leaves your browser.
Open toolNeed a custom tool for your business?
Tell us about your case and in 30 minutes we'll give you a clear diagnosis: what's going on, what to do first and what it might cost. No strings attached.