Free Number Tool

Decimal to Hex Converter: Convert Decimal to Hexadecimal

Enter a decimal number and get the hexadecimal equivalent right away. The converter handles single values and long lists, and returns clean uppercase or lowercase hex depending on what you need.

Upper or lowercase output Optional 0x prefix Batch conversion Large number support One-click copy Mobile friendly Free, no account

Convert Decimal to Hexadecimal in One Step

By hand you divide by sixteen repeatedly and read the remainders backwards, swapping 10 to 15 for A to F as you go. The decimal to hex converter does all of that at once, including the letter substitution.

Read more

Choose the Output Format You Need

Some codebases want uppercase hex, some want lowercase, and some want a 0x prefix. Pick the format before you copy, rather than hand-editing the result afterwards.

Build Colour Codes From Numbers

RGB values are decimal but CSS colours are hex. Converting decimal to hexadecimal is the step between the two, and doing all three channels at once here is faster than running a colour picker.

Convert Whole Lists at a Time

Paste a column of decimal values and get the hex column back in the same order. Useful for documentation tables, lookup charts and anything where you need dozens of conversions rather than one.

A Hex Calculator for Everyday Work

Error codes, offsets, byte counts and limits all tend to be written in hex even when they are calculated in decimal. Having a converter open saves constant mental gear-changing.

Accurate on Large Values

Big numbers produce longer hex strings and nothing else changes. There is no rounding, no truncation and no precision loss however large the input gets.

Private by Default

The conversion happens in your browser. Nothing is uploaded and nothing is kept once the tab closes.

How to Convert Decimal to Hex

1

Enter your decimal number

Type one value or paste a list with one number per line.
2

Pick your format

Choose uppercase or lowercase, and whether you want a 0x prefix.
3

Press Convert

The number is divided down into base sixteen and written out in hex.
4

Copy the hex value

One click copies the result ready for your code or notes.

Decimal To Hex FAQs

Common questions about converting decimal numbers into hexadecimal.

How do you convert decimal to hex?

Divide the number by sixteen, note the remainder, and repeat until the quotient is zero. Read the remainders backwards, swapping 10 to 15 for A to F. The converter does this instantly.

What is 255 in hexadecimal?

255 is FF. Dividing by sixteen gives 15 remainder 15, and 15 is F, so both digits are F. That is why FF appears everywhere as a maximum byte value.

What is 10 in hex?

Ten in decimal is A in hexadecimal. The digits 10 through 15 are written as A, B, C, D, E and F because hex needs sixteen single-character symbols.

Should I use uppercase or lowercase hex?

Either is valid and they mean the same thing. Uppercase is common in documentation and assembly, lowercase in web colours and many codebases. Follow whatever your project already uses.

Can I convert a list of numbers at once?

Yes. Paste one value per line and the converter returns the hex equivalents as a matching column.

Can I convert hex back to decimal?

Yes. Our hex to decimal converter reverses it, so you can check any value in both directions.

Does it handle negative numbers?

The converter works with positive whole numbers. Negative values in hex depend on the bit width and two’s complement representation, which varies by system.

Is the decimal to hex converter free?

Yes, free with no signup, no limits and no watermark.

Want binary or octal too?

Try our Decimal to Binary Converter, or convert the same number with Decimal to Octal.

Decimal to Binary Converter

Raheel Jakhura

CEO / Co-Founder

Our goal is to provide online free tools so you don't have to install any software for basic usages. We are trying to add more tools and make these tools free forever.

cookies image
We care about your data and would love to use cookies to improve your experience.