Number base converter (binary, hex)
Enter a number and its base to see it in bases 2, 8, 10, 16 and any other base.
A 0x, 0b or 0o prefix overrides the input base.
| Binary | — | |
|---|---|---|
| Octal | — | |
| Decimal | — | |
| Hexadecimal | — | |
| — |
How to use
- Enter a number and choose its base.
- Bases 2, 8, 10 and 16 appear at once; pick any other base in the last row.
- Turn off digit grouping to copy without spaces.
Questions
How large can numbers be?
Any size: integers are handled with BigInt.
Fractions?
Integers only for now.
How are negatives shown?
With a minus sign (-ff), not as two's complement.
Is my input saved or sent?
No. It is processed in your browser only.
Related tools
- Password generatorStrong random passwords from your browser's cryptographic random generator. Choose length and character sets.
- Unix timestamp converterUnix timestamps (seconds or milliseconds) to dates in several time zones, and dates back to timestamps.
- Base64 encode / decodeEncode text to Base64 and decode Base64 back to text, with full UTF-8 (Korean, Japanese, emoji) and URL-safe output.
- URL encode / decodePercent-encode text or URLs and decode %XX sequences back to readable text, with a table of query parameters.
- JSON formatter & validatorPretty-print or minify JSON, sort keys, and see exactly which line and column a syntax error is on.
- UUID generatorGenerate UUID v4 (random) or v7 (time-ordered) in bulk, upper or lower case, with or without hyphens.