Number Base Converter – Binary, Hex, Octal, Decimal & More
Convert numbers between binary, hexadecimal, octal, decimal, and any base (2-36) instantly with validation and formatting.
Number Base Converter
Convert numbers between different bases
Converted numbers will appear here
lightbulbPopular Use Cases
Convert decimal RGB values (0-255) to hex for CSS and web design
Convert binary representations for low-level programming and debugging
Convert between octal and decimal for chmod and file system permissions
Convert hexadecimal memory addresses to decimal for debugging and analysis
scienceExample Numbers
255
0b11111111
0xFF
keyboardKeyboard Shortcuts
keyboardShow shortcutsexpand_more
Related tools
Show moreShow more
› About this tool · FAQ
Stop manually converting number bases! Convert numbers between binary, octal, decimal, hexadecimal, and 30+ other bases instantly. Supports bases 2-36 with validation, digit grouping, batch processing, and negative numbers. Perfect for programming, computer science, and digital circuits. Free, works offline, unlimited conversions.
How do I convert number bases?
Enter your number, select the input base (binary, decimal, hex, octal, or 2-36), choose output bases, and convert. The tool displays all conversions simultaneously with optional digit grouping and prefixes for readability.
Is this number base converter free?
Yes, completely free with unlimited conversions. No signup required, no watermarks. All conversion happens in your browser for complete privacy of data and calculations.
Are numbers uploaded to servers?
No, all number base conversion happens locally in your browser. Numbers never leave your computer, ensuring complete privacy for sensitive calculations and proprietary data.
What number bases are supported?
The tool supports all bases from 2 (binary) to 36 (using digits 0-9 and letters A-Z). Common bases include binary (2), octal (8), decimal (10), and hexadecimal (16).
How do I specify the input base?
Use standard prefixes like 0b for binary, 0x for hex, 0o for octal, or the format "base r value" (e.g., "2r1010"). You can also set the input base in options.
What is digit grouping?
Digit grouping adds spaces to make long numbers more readable, like "1010 1010" for binary or "FF FF" for hex. This is especially useful for large numbers.
Can I convert negative numbers?
Yes, the tool handles negative numbers by converting the absolute value and preserving the negative sign in all output bases.
What's the maximum number size?
The tool can handle numbers up to JavaScript's MAX_SAFE_INTEGER (2^53 - 1) for accurate conversion. Larger numbers may lose precision.