inyourbrowser.com

Decimal to hex converter

Enter a decimal number (base 10) to instantly see its hexadecimal, binary, and octal equivalents. Output is shown in uppercase hex.

BIN
OCT
DEC
HEX

INPUT BASE

All bases shown simultaneously.

Runs entirely in your browser

How it works

Conversion uses JavaScript's built-in parseInt(value, fromBase).toString(toBase). All four bases are computed simultaneously from the same input value, so you can see binary, octal, decimal, and hex at a glance.

Processing runs in your browser

All conversion runs in your browser tab. Our servers are not involved at any point.

Related operations

For converting between data sizes like KB and MB, try the byte converter. To compute MD5 or SHA hashes from values, use the hash generator. For working with file permission bits, see the chmod calculator.

Frequently asked questions

When would I need to convert decimal to hex?
Common use cases include computing colour values (CSS #RRGGBB), working with memory addresses, encoding byte values in protocols, and debugging binary data.
Is the hex output uppercase or lowercase?
Uppercase by default (e.g. 'FF' not 'ff'), which is the most common convention for colour codes and memory addresses.

Related tools

Byte converter
Convert between bytes, KB, MB, GB and TB in both decimal (SI) and binary (IEC) units.
Hash generator
Generate SHA-256, SHA-512, SHA-1, and MD5 hashes. Verify file checksums locally.
Unit converter
Convert length, weight, temperature, speed and volume between metric and imperial. Instant results.