Decimal til Hex

Konverter ethvert base 10-tal til hexadecimal øjeblikkeligt. Indtast en værdi og se konverteringen i realtid.

⚡ Hurtig konvertering

Ugyldige tegn for den valgte base

Konverteringsresultat
0x0

⚙️ Live konverteringsdiagram

Indtast et decimaltal for at se divisionstrinene

🕑 Seneste konverteringer

Dine konverteringer vises her

Hvad er decimal til hexadecimal

At konvertere decimal til hexadecimal betyder at ændre et tal fra base 10-talsystemet til base 16. Decimalsystemet bruger ti cifre (0–9). Hexadecimalsystemet tilføjer seks symboler — hex-cifrene A–F.

Programmører foretrækker hexadecimal, fordi det passer perfekt til binære tal. Hvert hex-ciffer repræsenterer præcis fire binære bits.

🔄 Basesammenligning — Se ét tal i hver base

Decimalt talsystem

Decimalsystemet er base 10-talsystemet, du bruger dagligt. Hver cifferposition repræsenterer en potens af 10.

📊 Decimale pladsværdier — Interaktiv nedbrydning

Hexadecimalt talsystem

Hexadecimalsystemet er et base 16-talsystem. Det bruger seksten symboler: cifrene 0–9 og hex-cifrene A–F.

🔢 Hex-ciffer udforsker — Klik på et ciffer

Klik på et hex-ciffer ovenfor for detaljer

Sådan konverteres decimal til hexadecimal

Standardmetoden er den gentagne divisions- og restalgoritme. Tag heltallet, divider med 16 og noter resten.

For eksempel, konverter 255: divider 255 med 16, kvotient er 15 og rest er 15. Da 15 svarer til F, er hex-resultatet FF.

⚡ Prøv det — Interaktivt divisionsdiagram

Decimal til hexadecimal Formel

Formlen bruger gentagen division med basen (16).

N ÷ 16 = Q rest R
N = decimalt heltal · Q = kvotient · R = rest (0–15)
1Divider N med 16. Noter kvotient Q og rest R.
2Knyt R til hex-cifferet (0–9 forbliver, 10→A, 11→B, … 15→F).
3Erstat N med Q. Gentag til Q = 0.
4Læs hex-cifrene i omvendt rækkefølge — det er resultatet.

Trin-for-trin konverteringsmetode

Brug visualizeren nedenfor for at se den gentagne divisions- og restalgoritme i aktion.

Indtast et decimaltal ovenfor og klik på "Visualiser"
for at se konverteringen animeret trin for trin.

Endeligt 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.