Online Decimal to Hexadecimal Converter

This free online tool converts decimal numbers to hexadecimal numbers in a single click.

Test Your Web Or Mobile Apps On 3000+ Browsers
Signup for free...

Decimal (Note : Separate Octal values by single space for multiple value checks.)

Output

What is Decimal Number System?

The decimal number system, also known as the base-10 system, is the standard system for denoting integer and non-integer numbers. It is the most commonly used number system and consists of ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9.

Each position in a decimal number represents a power of 10, with the rightmost digit representing 100, the next digit representing 101, and so on. This system is intuitive for humans, as it is based on our ten fingers.

What is Hexadecimal Number System?

The hexadecimal number system, or hex, is a base-16 number system. It uses sixteen distinct symbols: 0-9 to represent values zero to nine and A-F to represent values ten to fifteen.

Hexadecimal is commonly used in computing and digital electronics because it can represent large binary numbers in a more compact and readable form. Each position in a hex number represents a power of 16.

How to Use Decimal to Hexadecimal Calculator?

Using the Decimal to Hexadecimal Calculator is easy and involves these steps:

  • Access the Tool: Navigate to the Decimal to Hexadecimal Converter page on LambdaTest's website.
  • Enter the Decimal Number: In the input field labeled "Decimal," type the decimal number you want to convert to hexadecimal.
  • Convert the Number: Click the "Convert to Hexadecimal" button.
  • View the Result: The hexadecimal equivalent of the entered decimal number will be displayed instantly in the output section.

How to Convert from Decimal to Hex Conversion With Steps

Converting from decimal to hexadecimal involves dividing the decimal number by 16 and recording the remainder. This process is repeated with the quotient until the quotient is zero. The hex number is then read from the last remainder to the first.

1. Intuitive Method Using Powers

  • Determine the Largest Power of 16: Identify the highest power of 16 that is less than or equal to the decimal number. For example, if the decimal number is 1234, the highest power of 16 less than 1234 is 256 (162).
  • Divide and Find Coefficients: Divide the decimal number by the largest power of 16 to get the coefficient for that power. Subtract the result from the original number to get the remainder. Repeat this process for each descending power of 16. Example: Convert 1234 to hexadecimal.
    • Highest power of 16 : 16² = 256
    • Coefficient for 16² : 1234 ÷ 256 = 4 (remainder 210)
    • Coefficient for 16¹ : 210 ÷ 16 = 13 (remainder 2)
    • Coefficient for 16¹ : 2 ÷ 16 = 0 (remainder 2)
  • Convert Coefficients to Hex: Convert each coefficient to its hexadecimal equivalent. In our example, the coefficients 4, 13, and 2 correspond to 4, D, and 2, respectively.
  • Combine Results: Combine the hexadecimal digits to form the final hex number. The result is 4D2.

2. Fast Method Using Remainders

  • Divide by 16: Start by dividing the decimal number by 16.
  • Record the Remainder: Write down the remainder. This remainder is the hexadecimal representation's least significant digit (rightmost).
  • Update the Quotient: Update the decimal number as the division's quotient.
  • Repeat the process: With the new quotient, divide by 16 and record the remainder until the quotient is zero.
  • Read the Hex Number: The hexadecimal number is read from the last remainder recorded to the first.
  • Example: Convert 1234 to hexadecimal.

    • 1234 ÷ 16 = 77 (remainder 2)
    • 77 ÷ 16 = 4 (remainder 13, which is D in hex)
    • 4 ÷ 16 = 0 (remainder 4)

    By following these steps, you can accurately convert any decimal number to its hexadecimal equivalent.

Decimal to Hex Conversion Table

Decimal Hexadecimal
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 A
11 B
12 C
13 D
14 E
15 F
16 10
17 11
18 12
19 13
20 14
21 15
22 16
23 17
24 18
25 19
26 1A
27 1B
28 1C
29 1D
30 1E
31 1F
32 20
33 21
34 22
35 23
36 24
37 25
38 26
39 27
40 28
41 29
42 2A
43 2B
44 2C
45 2D
46 2E
47 2F
48 30
49 31
50 32
51 33
52 34
53 35
54 36
55 37
56 38
57 39
58 3A
59 3B
60 3C
61 3D
62 3E
63 3F
64 40
65 41
66 42
67 43
68 44
69 45
70 46
71 47
72 48
73 49
74 4A
75 4B
76 4C
77 4D
78 4E
79 4F
80 50
81 51
82 52
83 53
84 54
85 55
86 56
87 57
88 58
89 59
90 5A
91 5B
92 5C
93 5D
94 5E
95 5F
96 60
97 61
98 62
99 4F
100 50
101 51
102 52
103 53
104 54
105 55
106 56
107 57
108 58
109 59
110 5A
111 5B
112 5C
113 5D
114 5E
115 5F
116 60
117 61
118 62
119 77
120 78
121 79
122 7A
123 7B
124 7C
125 7D
126 7E
127 7F
128 80
129 81
130 82
131 83
132 84
133 85
134 86
135 87
136 88
137 89
138 8A
139 8B
140 8C
141 8D
142 8E
143 8F
144 90
145 91
146 92
147 93
148 94
149 95
150 96
151 97
152 98
153 99
154 9A
155 9B
156 9C
157 9D
158 9E
159 9F
160 A0
161 A1
162 A2
163 A3
164 A4
165 A5
166 A6
167 A7
168 A8
169 A9
170 AA
171 AB
172 AC
173 AD
174 AE
175 AF
176 B0
177 B1
178 B2
179 B3
180 B4
181 B5
182 B6
183 B7
184 B8
185 B9
186 BA
187 BB
188 BC
189 BD
190 BE
191 BF
192 C0
193 C1
194 C2
195 C3
196 C4
197 C5
198 C6
199 C7
200 C8
201 C9
202 CA
203 CB
204 CC
205 CD
206 CE
207 CF
208 D0
209 D1
210 D2
211 D3
212 D4
213 D5
214 D6
215 D7
216 D8
217 D9
218 DA
219 DB
220 DC
221 DD
222 DE
223 DF
224 E0
225 E1
226 E2
227 E3
228 E4
229 E5
230 E6
231 E7
232 E8
233 E9
234 EA
235 EB
236 EC
237 ED
238 EE
239 EF
240 F0
241 F1
242 F2
243 F3
244 F4
245 F5
246 F6
247 F7
248 F8
249 F9
250 FA
251 FB
252 FC
253 FD
254 FE
255 FF

This table provides a comprehensive reference for converting any decimal number from 0 to 255 to its hexadecimal equivalent

Decimal to Hexadecimal Conversion Solved Problems & Examples

Example 1

Convert the decimal number 255 to hexadecimal.

  • Divide 255 by 16: 255 ÷ 16 = 15 remainder 15.
  • Convert the remainder to hex: 15 = F.
  • The quotient is 15, which is also F in hex.
  • The hexadecimal representation is FF.

Example 2

Convert the decimal number 4096 to hexadecimal.

  • Divide 4096 by 16: 4096 ÷ 16 = 256 remainder 0.
  • The quotient is 256, which is 100 in hex (256 ÷ 16 = 16 remainder 0; 16 ÷ 16 = 1 remainder 0; 1 ÷ 16 = 0 remainder 1).
  • The hexadecimal representation is 1000.

Example 3

Convert the decimal number 1234 to hexadecimal.

  • 1234 ÷ 16 = 77 remainder 2.
  • 77 ÷ 16 = 4 remainder 13.
  • 4 ÷ 16 = 0 remainder 4.
  • Hexadecimal: 4D2.

Example 4

Convert the decimal number 100 to hexadecimal.

  • 100 ÷ 16 = 6 remainder 4
  • 6 ÷ 16 = 0 remainder 6
  • Hexadecimal: 64

Frequently Asked Questions – FAQs

How does the Decimal to Hexadecimal Converter work?

The converter divides the decimal number by 16 repeatedly, recording the remainder. These remainders are then converted to hexadecimal digits and read in reverse order to get the final hex number.

Can I convert negative decimal numbers to hexadecimal?

Yes, the current tool supports the conversion of positive and negative decimal numbers to hexadecimal.

What is the range of decimal numbers that can be converted?

You can convert any positive decimal number within the typical computational limits.

Is the tool free to use?

Yes, the Decimal to Hexadecimal Converter on LambdaTest is completely free to use.

What is the purpose of converting decimal numbers to hexadecimal?

Hexadecimal is often used in computing and digital electronics for its compact representation of binary-coded values, making it easier to read and understand.

Can the tool handle very large decimal numbers?

Yes, the tool can handle large decimal numbers efficiently, converting them to their hexadecimal equivalents.

What browsers are compatible with the Decimal to Hexadecimal Converter?

The converter is compatible with all modern web browsers, including Chrome, Firefox, Safari, and Edge.

Is there any limit to the number of conversions I can perform?

No, there is no limit. You can perform as many conversions as you need.

When converting decimal to hex, what is the change in their bases?

The base changes from 10 (decimal) to 16 (hexadecimal) in the conversion.

What is the hex equivalent to the decimal number 14?

The hex equivalent of the decimal number 14 is E.

What is the decimal 192 in hex?

The decimal number 192 converts to C0 in hexadecimal.

What does 0 mean in hex?

In hexadecimal, 0 means zero, the same as in the decimal system.

Did you find this page helpful?

Helpful

NotHelpful

Background banner

Join the Testμ Conf 2024

type21 - 23 Aug

By clicking Register Now you accept the LambdaTest Terms of Service and acknowledge the Privacy Policy, Code of Conduct and Cookie Policy

Biggest Online Conference for QA

Speakers

3

Days

60+

Speakers

35+

Sessions

30K+

Attendees

More Tools

... Code Tidy
... Data Format
... Random Data
... Hash Calculators
... Utils

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud