Decimal till Hex

Konvertera valfritt bas 10-tal till hexadecimal direkt. Skriv in ett värde och se konverteringen i realtid.

⚡ Snabb konvertering

Ogiltiga tecken för vald bas

Konverteringsresultat
0x0

⚙️ Livekonverteringsdiagram

Skriv in ett decimaltal för att se divisionsstegen

🕑 Senaste konverteringar

Dina konverteringar visas här

Vad är decimal till hexadecimal

Att konvertera decimal till hexadecimal innebär att ändra ett tal från bas 10-talsystemet till bas 16. Decimalsystemet använder tio siffror (0–9). Hexadecimalsystemet lägger till sex symboler — hex-siffrorna A–F.

Programmerare föredrar hexadecimal eftersom det passar perfekt med binära tal. Varje hex-siffra representerar exakt fyra binära bitar.

🔄 Basjämförelse — Se ett tal i varje bas

Decimalt talsystem

Decimalsystemet är bas 10-talsystemet du använder dagligen. Varje sifferposition representerar en potens av 10.

📊 Decimala platsvärden — Interaktiv uppdelning

Hexadecimalt talsystem

Hexadecimalsystemet är ett bas 16-talsystem. Det använder sexton symboler: siffrorna 0–9 och hex-siffrorna A–F.

🔢 Hex-sifferutforskare — Klicka på valfri siffra

Klicka på en hex-siffra ovan för detaljer

Hur man konverterar decimal till hexadecimal

Standardmetoden är den upprepade divisions- och restalgoritmen. Ta heltalet, dela med 16 och anteckna resten.

Till exempel, konvertera 255: dela 255 med 16, kvoten är 15 och resten 15. Eftersom 15 motsvarar F, är hex-resultatet FF.

⚡ Prova — Interaktivt divisionsdiagram

Decimal till hexadecimal Formel

Formeln använder upprepad division med basen (16).

N ÷ 16 = Q rest R
N = decimalt heltal · Q = kvot · R = rest (0–15)
1Dela N med 16. Anteckna kvot Q och rest R.
2Koppla R till hex-siffran (0–9 förblir, 10→A, 11→B, … 15→F).
3Ersätt N med Q. Upprepa tills Q = 0.
4Läs hex-siffrorna i omvänd ordning — det är resultatet.

Steg-för-steg konverteringsmetod

Använd visualiseraren nedan för att se den upprepade divisions- och restalgoritmen i aktion.

Ange ett decimaltal ovan och klicka på "Visualisera"
för att se konverteringen animerad steg för steg.

Slutgiltigt hexadecimalt resultat

All Conversion Tools

Instantly convert between number systems, encodings, and formats with interactive step-by-step breakdowns.

Dec → Hex

Decimal to Hexadecimal

Base 10 → Base 16

Try Now →
Hex → Dec

Hexadecimal to Decimal

Base 16 → Base 10

Try Now →
Dec → Bin

Decimal to Binary

Base 10 → Base 2

Try Now →
Bin → Dec

Binary to Decimal

Base 2 → Base 10

Try Now →
Dec → Oct

Decimal to Octal

Base 10 → Base 8

Try Now →
Oct → Dec

Octal to Decimal

Base 8 → Base 10

Try Now →
Oct → Hex

Octal to Hexadecimal

Base 8 → Base 16

Try Now →
Hex → Oct

Hexadecimal to Octal

Base 16 → Base 8

Try Now →
Oct → Bin

Octal to Binary

Base 8 → Base 2

Try Now →
Bin → Oct

Binary to Octal

Base 2 → Base 8

Try Now →
Hex → Bin

Hexadecimal to Binary

Base 16 → Base 2

Try Now →
Bin → Hex

Binary to Hexadecimal

Base 2 → Base 16

Try Now →
Dec → BCD

Decimal to BCD

Convert decimal numbers to Binary Coded Decimal (B...

Try Now →
Dec → 2's

Decimal to 2's Complement

Convert decimal integers (including negatives) to ...

Try Now →
Bin → ASCII

Binary to ASCII

Convert binary numbers to ASCII text characters. D...

Try Now →
Bin → Gray

Binary to Gray Code

Convert standard binary to Gray code (reflected bi...

Try Now →
Hex → ASCII

Hex to ASCII

Convert hexadecimal values to ASCII text. Decode h...

Try Now →
Hex → RGB

Hex to RGB

Convert hex color codes to RGB values instantly. S...

Try Now →
RGB → Hex

RGB to Hex

Convert RGB color values to hexadecimal color code...

Try Now →
ASCII → Hex

ASCII to Hex

Convert ASCII text to hexadecimal representation. ...

Try Now →
Hex → Text

Hex to Text

Convert hexadecimal strings to readable text. Deco...

Try Now →
Dec → Frac

Decimal to Fraction

Convert decimal numbers to simplified fractions. S...

Try Now →
Dec → %

Decimal to Percent

Convert decimal values to percentages instantly wi...

Try Now →
Any → Any

Number Base Converter

Convert numbers between any bases (2-36). Universa...

Try Now →
Hex → Info

Hexadecimal Reference

Complete hexadecimal reference with conversion tab...

Try Now →
Hex → Unicode

Hex to Unicode

Convert hexadecimal code points to Unicode charact...

Try Now →
ASCII → Bin

ASCII to Binary

Convert ASCII text to binary representation. See e...

Try Now →

Frequently Asked Questions

Decimal to hexadecimal conversion is the process of changing a number from base 10 to base 16. Each hex digit represents exactly 4 binary bits.
Divide the decimal number by 16 repeatedly. Record the remainder at each step. Read the remainders from bottom to top.
Hexadecimal is a base-16 numeral system using 0-9 and A-F. It is widely used in computing and web design.
Hexadecimal maps perfectly to binary. Each hex digit equals exactly 4 bits, making it easier to read binary data.
The 0x prefix indicates a hexadecimal number in programming languages like C, Java, Python, and JavaScript.
Hex color codes use #RRGGBB format. Each pair ranges from 00 to FF representing red, green, and blue intensity.
Yes! Our converter is completely free with no registration required. Convert unlimited numbers between any bases.