Base Convert
Bin / oct / dec / hex conversion.
A free number-base converter between binary, octal, decimal and hexadecimal. It auto-detects and ignores 0x / 0o / 0b prefixes and validates that the digits are legal for the chosen base. It runs entirely in your browser.
How to use
- Pick the base of your input number (e.g. hexadecimal).
- Enter the number (an optional 0x / 0o / 0b prefix is accepted).
- Choose the target base, then read and copy the result.
FAQ
- Which bases and prefixes are supported?
- Binary, octal, decimal and hexadecimal in any direction; the input may include a 0x (hex), 0o (octal) or 0b (binary) prefix, which is stripped before parsing.
- Can it convert very large numbers?
- Conversion uses JavaScript numbers, whose safe integer limit is about 2^53. Extremely large integers beyond that may lose precision — use a dedicated big-integer tool for those.
- Is anything uploaded?
- No, the conversion is entirely local.
Related tools
- Percentage — Percentages, increase / decrease.
- Unit Convert — Length, weight, temperature & more.
- Date Diff — Days between two dates.
- 2FA Authenticator — End-to-end encrypted 2FA vault with live codes.
- Password Vault — Zero-knowledge vault for site logins; survives password changes.
- Data Format — Convert between JSON, YAML, TOML, CSV.