CodeMash

Hex to Decimal Converter — Number Base Converter

Convert numbers between decimal, hexadecimal, binary, and octal formats.

Ad Space

Frequently Asked Questions

How do I convert hex to decimal online?

Enter a hexadecimal number with the 0x prefix (e.g., 0xFF) into the input. The converter instantly shows decimal, binary, and octal equivalents.

How do I specify the input base?

Use standard prefixes: 0x for hex (0xFF), 0b for binary (0b1010), 0o for octal (0o17). Plain numbers without prefix are treated as decimal.

Are large numbers supported?

Yes, the converter uses BigInt internally and can handle arbitrarily large numbers without precision loss, unlike calculators limited to 64-bit floats.

Can I convert binary to decimal?

Yes. Enter a binary number with the 0b prefix (e.g., 0b11111111) and get instant decimal (255), hex (0xFF), and octal (0o377) conversions.

Privacy First: All processing happens directly in your browser. Your data never leaves your device.