Encoding & Number Bases
Decimal, Hex, Binary and Octal Converter
Convert decimal to hex, hex to decimal, binary, or octal. Preserve large integer precision and convert signed numbers directly in your browser.
Tool workspace
ReadyYour input stays in this browser.
The tool is ready to run.
Run the tool when your input is ready.
Ready for a result
Run the tool to create the result.
Direct answer
What Decimal, Hex, Binary and Octal Converter does
A number base converter changes the notation of an integer while keeping its value. Choose bases 2, 8, 10, or 16 to convert binary, octal, decimal, or hexadecimal. Exact integer arithmetic preserves large values.
Output
What you receive
You receive the same integer written in the selected output base, with uppercase hexadecimal digits and an explicit minus sign when negative.
Use this tool
How to convert decimal, hexadecimal, binary, and octal
- Enter an integer without 0x, 0b, or 0o prefixes.
- Select the input base and output base.
- Select Convert and copy the result.
- Reverse the bases to check the conversion.
Processing
Calculate privately in your browser
This utility processes values locally. It does not send your input to a conversion service.
Worked example
Test Decimal, Hex, Binary and Octal Converter with a safe sample
Input: 255
Settings: Decimal (10) to Hexadecimal (16)
Expected result
FF
The same value in binary is 11111111 and in octal is 377.
Limits
Check before you use the result
- The input must contain at most 512 valid digits, with an optional minus sign.
- Fractions, exponent notation, base prefixes, and separators are not supported.
- Negative results use a minus sign, not fixed-width two's complement.
- This utility converts numbers, not encoded text or RGB colors.