Denary to hexadecimal calculator 2027

calculatorsonline.co.uk
Denary to Hexadecimal Calculator

Instantly convert denary (base 10) numbers to hexadecimal (base 16). View binary and octal equivalents, and see the step-by-step division process.

🔢 Base 10 to 16
💻 Binary & Octal
📝 Step-by-Step

Denary to Hexadecimal

Convert decimal numbers to base 16 instantly

Input Number

Enter a positive or negative whole number (supports arbitrarily large integers)


Display Options

Your Results

Base 10 to Base 16 conversion

🔢

Enter a denary number and click Convert to see the hexadecimal, binary, and octal equivalents.

It only takes a few seconds to calculate bidmas.

A Closer Look at the Denary to hexadecimal calculator Practical Guide

What this calculator does

Whether you are checking a quick estimate or planning something properly, the Denary to hexadecimal calculator gives you a dependable starting point for denary to hexadecimal. It is free to use, needs no sign-up, and works on phones, tablets and desktop screens alike.

Who it helps

You may find it especially handy if you are among professionals brushing up on skills, teachers and curious learners. Having a dependable answer for denary to hexadecimal close at hand makes planning less stressful. It often comes into play when verifying a long calculation, revising before an exam and exploring how a formula behaves, because a reliable figure for denary to hexadecimal prevents costly second-guessing.

Getting accurate results

For the most accurate result, gather your figures before you open the calculator. Double-check each value, keep your units consistent, and make a point to check whether angles use degrees or radians. Then enter the details, review the output, and adjust one input at a time to see how sensitive denary to hexadecimal is to each change.

Mistakes to avoid

Even careful users sometimes trip over misreading the question, or end up using degrees instead of radians. Build a short pause into your routine to look for them, and your figures for denary to hexadecimal will hold up much better.

Reading your result

Treat the output as one piece of evidence rather than a final verdict. Think about how hexadecimal and denary might change if your situation shifted, and repeat the calculation with updated values when it does. Bookmark this page so the Denary to hexadecimal calculator is always one tap away when you need it again. If you are unsure about a value, try a low and a high estimate and see how far apart the answers are.

A note on accuracy

Please treat the outcome from the Denary to hexadecimal calculator as a helpful estimate. Your own circumstances may differ, so verify key figures with a trusted source before relying on them for a major decision.

What Denary and Hexadecimal Mean

Denary is the ordinary decimal system, base 10, with ten digits from 0 to 9. Hexadecimal is base 16, with sixteen digits: 0 to 9, then A for ten, B for eleven, C for twelve, D for thirteen, E for fourteen and F for fifteen. Computers use hexadecimal because one hex digit is exactly four bits, so two hex digits make one byte. The value 255 in denary is FF in hexadecimal, and 4,096 in denary is 1000 in hexadecimal.

Step-by-Step Conversion: 255 to FF

Divide by 16 and keep the remainders, reading them from last to first. Two hundred and fifty-five divided by 16 is 15 with a remainder of 15, and 15 in hex is F. Fifteen divided by 16 is 0 with a remainder of 15, which is F again. Reading the remainders backwards gives FF. For 200: 200 divided by 16 is 12 with a remainder of 8, and 12 is C, so 200 is C8. For 1,000: 1,000 divided by 16 is 62 with a remainder of 8; 62 divided by 16 is 3 with a remainder of 14, which is E; 3 divided by 16 is 0 with a remainder of 3, so reading backwards gives 3E8.

Denary to Hexadecimal Table

DenaryHexadecimalWithout prefix
00x00
10x11
20x22
50x55
90x99
100xAA
110xBB
120xCC
130xDD
140xEE
150xFF
160x1010
260x1A1A
320x2020
640x4040
1000x6464
1270x7F7F
1280x8080
2000xC8C8
2550xFFFF
2560x100100
5120x200200
10000x3E83E8
10240x400400
40950xFFFFFF
40960x10001000

Fractions in Hexadecimal

Fractions work the same way, but you multiply by 16 instead of dividing. One half is 0.5 in denary and 0.8 in hex, because 0.5 × 16 = 8. One quarter is 0.25 in denary and 0.4 in hex, because 0.25 × 16 = 4. Three quarters is 0.75 in denary and 0.C in hex, because 0.75 × 16 = 12, and 12 is C. Not every decimal fraction converts neatly: 0.1 in denary is 0.1999 repeating in hex, because one tenth cannot be written exactly in base 16, just as one third cannot be written exactly in base 10.

Negative Numbers: Two’s Complement

Computers store negative numbers in two’s complement, which is the number added to the largest value to make zero. In eight bits, minus one is FF, because 255 + 1 = 256, which is zero in eight bits. Minus forty-two is D6, because 256 − 42 = 214, and 214 is D6. Minus one hundred and twenty-eight is 80, the smallest eight-bit signed number, and plus one hundred and twenty-seven is 7F, the largest. In sixteen bits, minus one is FFFF and minus forty-two is FFD6. The first hex digit tells you the sign: 0 to 7 is positive and 8 to F is negative.

Prefixes and Uppercase or Lowercase

Hexadecimal is often written with a 0x prefix, as in 0xFF, so it cannot be confused with denary. In web colours the prefix is a hash, as in #FF0000 for red, where FF is the red channel, 00 is green and 00 is blue. Uppercase and lowercase mean the same thing: ff, FF and Ff are all 255. Programmers usually write uppercase for readability, but the calculator on this page accepts either.

Endianness: Which Byte Comes First

A number bigger than one byte has to be stored in an order, and the two orders are called big-endian and little-endian. The value 0x1234 stored big-endian is the bytes 12 then 34, in the order you read them. Stored little-endian it is the bytes 34 then 12, with the smallest byte first. Most modern desktop processors use little-endian, while network protocols use big-endian. The value is the same either way; only the order of the bytes in memory changes.

Frequently Asked Questions

What is 255 in hexadecimal? FF. What is FF in denary? 255. How do I convert denary to hex? Divide by 16 repeatedly and read the remainders backwards. What does 0x mean? It marks a number as hexadecimal. What is −1 in hex? FF in eight bits, FFFF in sixteen bits. Is hex case-sensitive? No, ff and FF are the same value. What is 0.5 in hex? 0.8.

Converting Denary to Hexadecimal

Hexadecimal is base 16, using digits 0–9 then A–F for 10–15. To convert a denary (decimal) number, divide by 16 and write down the remainders from last to first.

Examples

128 ÷ 16 = 8 remainder 0, so 128 = 80 in hex. 200 ÷ 16 = 12 remainder 8, so 200 = C8. 255 is FF, the largest two-digit hex number.

Why GCSE Computer Science uses hex

Each hex digit represents exactly 4 binary bits, so hex is a short way to write binary. 1111 1111 in binary is FF in hex.

Number Conversion FAQ

Everything you need to know about converting denary numbers to hexadecimal and understanding base systems.

A denary to hexadecimal calculator is a tool that converts numbers from the denary (base 10) system, which is the standard system for denoting integers, to the hexadecimal (base 16) system, which is widely used in computing and digital systems. It provides the equivalent hex value, and often binary and octal equivalents as well.

To convert a denary number to hexadecimal manually, repeatedly divide the number by 16. Write down the remainder for each division (where 10=A, 11=B, 12=C, 13=D, 14=E, 15=F). Continue dividing the quotient by 16 until the quotient is 0. The hexadecimal number is the sequence of remainders read from bottom to top (last remainder to first).

The hexadecimal system is a base-16 number system. It uses 16 distinct symbols: the numbers 0-9 represent values zero to nine, and the letters A-F represent values ten to fifteen. It is heavily used in computing because a single hexadecimal digit can represent four binary digits (bits), making binary code much easier for humans to read.

Hexadecimal is used in computing because it provides a highly compact and human-readable way to represent binary data. Since 16 is a power of 2 (2^4 = 16), each hex digit maps exactly to four binary bits. This makes it much easier to read memory addresses, color codes (like #FFFFFF for white), and machine-level code compared to long strings of 0s and 1s.

To convert hexadecimal to denary, multiply each hex digit by 16 raised to the power of its position (starting from 0 on the right) and sum the results. For example, to convert ‘1A’ to denary: (1 × 16^1) + (10 × 16^0) = 16 + 10 = 26.

Hexadecimal uses 16 symbols: the digits 0-9 represent values zero to nine, and the letters A-F represent values ten to fifteen. Specifically, A=10, B=11, C=12, D=13, E=14, and F=15.

80.

Multiply the left digit by 16 and add the right digit. C8 = 12 × 16 + 8 = 200.

Similar Posts