Decimal to hexadecimal converter

Convert decimal to hexadecimal with BigInt, upper/lowercase output and padding. Includes binary and octal equivalents plus a step-by-step division table.

Online decimal to hexadecimal calculator (with steps)

Convert any decimal number to hexadecimal with BigInt, also get binary and octal, and review the automatic successive division table.

Hexadecimal

Successive division by 16

Clean decimal

Binary

Base 2 equivalent

Octal

Base 8 equivalent

Automatic steps: successive divisions by 16

Step Quotient Remainder Build

How to convert decimal to hexadecimal

  1. Normalize the input. Remove spaces and underscores, keep the sign, and validate only decimal digits remain.
  2. Separate the sign. Work with the absolute value and keep whether it was negative to add back later.
  3. Divide successively by 16. Each step uses the quotient for the next division and the remainder (0–15) becomes a hex digit via 0–9 and A–F.
  4. Build the result. Read the remainders in reverse order (last to first); if the number was 0, the output is 0.
  5. Tune the format. Apply upper/lowercase, add 4-bit-multiple padding if needed, and reattach the original sign.
10 → A 15 → F 31 → 1F 2024 → 7E8 65535 → FFFF -255 → -FF

Frequently asked questions