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.
The converter uses integer arithmetic to change notation without floating-point rounding.
The result contains digits in the selected output base.
- Read a hex memory address, error code, or color channel as a decimal number.
Write 2026 in another base
Input: 2026
Settings: Input base Decimal (10); Output base Hexadecimal (16)
Result: 7EA
Divide by 16 and keep the remainders: 2026 ÷ 16 = 126 r 10 (A), 126 ÷ 16 = 7 r 14 (E), 7 ÷ 16 = 0 r 7. Read the remainders upward to get 7EA. Check: 7 × 256 + 14 × 16 + 10 = 2026.
Choose integer bases and preserve large values
- Enter an integer without prefixes or separators.
- Choose Input base and Output base.
- Select Convert.
- Supported bases are binary, octal, decimal, and hexadecimal.
- Negative values use a minus sign, not two’s complement.
- The operation converts integers, not encoded text bytes.