DeveloperReady to use
Number Base Converter
Convert non-negative integers between binary, decimal, and hexadecimal.
Interactive workspace
No account requiredHow to use it
- Enter a non-negative integer in the source base.
- Choose From base 2, 10, or 16.
- Choose the destination base and review any validation error.
Common number base conversions
Examples use decimal, binary, hexadecimal, and octal.
| Decimal | Binary | Hexadecimal | Octal |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 8 | 1000 | 8 | 10 |
| 10 | 1010 | A | 12 |
| 16 | 10000 | 10 | 20 |
| 255 | 11111111 | FF | 377 |
Base 16 is a compact way to write byte values and memory addresses. Unix file permissions use octal; 755 is a common permission value. To convert binary to hexadecimal, group binary digits in sets of four and map each group to one hex digit. Prefixes 0b, 0o, and 0x indicate binary, octal, and hexadecimal input.
Related tools
Hash Generator
Create MD5, SHA-1, SHA-256, SHA-384, or SHA-512 checksums locally in your browser, and compare text digests with a published value.
Base64
Encode and decode UTF-8 text directly in your browser.
JSON Formatter
Validate, format, minify, copy, and download JSON with a quick browser-based parser.
ASCII / HEX Converter
Convert text to its hexadecimal byte representation, or decode hex back into readable ASCII text.
Credit Card Validator
Check a card number's Luhn checksum and identify its likely card network from the number pattern.
Roman Numerals Converter
Convert whole numbers from 1 to 3999 into Roman numerals, or validate and decode Roman notation.