Number base converter. Convert between binary, octal, decimal, and hexadecimal number systems with real-time updates, fractional support, and
100% browser-based — your data never leaves your device
Convert between binary, octal, decimal, and hexadecimal number systems.
Enter a value in binary, octal, decimal, or hexadecimal. All other fields update instantly.
Enable bit-length display to see binary padded to 8, 16, 32, or 64 bits.
Click the copy button next to any base to copy that representation.
Ctrl+Enter to convert
Convert length, weight, temperature, area, and volume units.
Number Base ConverterConvert between binary, octal, decimal, and hexadecimal number systems.
Percentage CalculatorCalculate percentages easily with three common modes.
Chmod CalculatorConvert Unix file permissions between numeric and symbolic formats.
Random Number GeneratorGenerate cryptographically secure random numbers with custom ranges and count.
Scientific CalculatorPerform scientific calculations with trigonometric, logarithmic, and exponential functions.
Type a number in any base field and every other base updates at the same instant. The conversion is handled locally in your browser, so the values you inspect never get sent anywhere for processing.
Low-level programming runs on the constant need to translate between number systems. When you read a memory address, decode a hex color, or work out bitmasks for flags, you are doing base conversions in your head unless you have a tool. This converter handles all four common bases — binary (2), octal (8), decimal (10), and hexadecimal (16) — and updates every field simultaneously as you type, so you can see the relationships between systems rather than converting in one direction only.
The real-time updates make it a learning tool as well as a work tool: type 255 in decimal and watch it appear as FF in hex and 11111111 in binary, which makes patterns like RGB color values suddenly obvious. The bit-length feature pads binary to standard fixed-width sizes, which is exactly what you want when you are reasoning about 8-bit bytes, 16-bit registers, or 32-bit addresses. Fractional support covers numbers with decimal points, so you are not limited to integers when you need to convert a floating-point value across bases.
When you convert hex values from a debugger, you are often looking at memory contents, serialized data structures, or identifiers from a codebase that is not public. Pasting those values into a web tool can leak fragments of proprietary formats, internal addressing schemes, or object identifiers that a competitor or attacker could piece together.
This Number Base Converter runs entirely in your browser. The numbers you type, whether they come from a crash dump, a color palette, or a reverse-engineering session, never leave your device. The conversion is instant because it never has to travel anywhere.
Enter a value in binary, octal, decimal, or hexadecimal. All other fields update instantly.
Enable bit-length display to see binary padded to 8, 16, 32, or 64 bits.
Click the copy button next to any base to copy that representation.
Practical examples to help you get the most out of Number Base Converter:
Decimal: 255 Hex: FF Binary: 11111111 Octal: 377 Useful for understanding RGB color values.
Hex: FF5733 Decimal: 16732211 Binary: 111111110101011100110011 Common hex color code conversion.
Hexadecimal only uses 0-9 and A-F. Values like 'GH' or '1G' are invalid. Valid hex digits are 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F.
In octal, digits 8 and 9 don't exist. The number 10 in octal equals 8 in decimal. Pay attention to the base indicator (0o prefix for octal).
Type any decimal number in the Decimal field, and the binary equivalent appears instantly in the Binary field. All bases update simultaneously as you type.
Binary (base-2), Octal (base-8), Decimal (base-10), and Hexadecimal (base-16) are all supported with real-time conversion between all bases.
Yes. The converter supports fractional numbers with decimal points across all bases, including floating-point binary and hexadecimal representations.
Hexadecimal uses digits 0-9 and letters A-F. Common patterns like 'DEAD', 'BEEF', and 'CAFE' are just coincidental readable hex values.
Convert between binary (2), octal (8), decimal (10), and hexadecimal (16).
All bases update simultaneously as you type in any one field.
Convert fractional numbers with decimal point support.
See binary padded to 8, 16, 32, or 64 bits.
Number Base Converter is useful in a variety of scenarios across different workflows:
Converting between decimal, binary, and hexadecimal for low-level programming
Decoding hex color values and memory addresses in debugging sessions
Understanding binary and octal representations in Unix file permissions
Type a number in any base field and all other bases update in real-time. Use this to learn the relationships between number systems.
Enable bit-length display to see binary padded to 8, 16, 32, or 64 bits for understanding fixed-width integer representations.
Explore more tools in the Math workspace:
Unit Converter
Convert length, weight, temperature, area, and volume units.
Percentage Calculator
Calculate percentages easily with three common modes.
Chmod Calculator
Convert Unix file permissions between numeric and symbolic formats.
Random Number Generator
Generate cryptographically secure random numbers with custom ranges and count.
Scientific Calculator
Perform scientific calculations with trigonometric, logarithmic, and exponential functions.