Decimalni u Hex

Pretvorite bilo koji broj baze 10 u heksadecimalni odmah. Upišite vrijednost i gledajte pretvorbu u stvarnom vremenu.

⚡ Brza pretvorba

Nevažeći znakovi za odabranu bazu

Rezultat pretvorbe
0x0

⚙️ Dijagram pretvorbe uživo

Upišite decimalni broj da vidite korake dijeljenja

🕑 Nedavne pretvorbe

Vaše pretvorbe će se pojaviti ovdje

Što je decimalni u heksadecimalni

Pretvaranje decimalnog u heksadecimalni znači mijenjanje broja iz brojevnog sustava baze 10 u sustav baze 16. Decimalni sustav koristi deset znamenki (0–9). Heksadecimalni dodaje šest simbola — hex znamenke A–F.

Programeri preferiraju heksadecimalni jer se savršeno podudara s binarnim brojevima. Svaka hex znamenka predstavlja točno četiri binarna bita.

🔄 Usporedba baza — Jedan broj u svakoj bazi

Decimalni brojevni sustav

Decimalni brojevni sustav je sustav baze 10 koji koristite svaki dan. Svaka pozicija znamenke predstavlja potenciju broja 10.

📊 Decimalne mjesne vrijednosti — Interaktivna razrada

Heksadecimalni brojevni sustav

Heksadecimalni sustav je brojevni sustav baze 16. Koristi šesnaest simbola: znamenke 0–9 i hex znamenke A–F.

🔢 Istraživač hex znamenki — Kliknite na bilo koju

Kliknite na hex znamenku iznad za detalje

Kako pretvoriti decimalni u heksadecimalni

Standardna metoda je algoritam ponovljenog dijeljenja i ostatka. Uzmite cijeli broj, podijelite s 16 i zapišite ostatak.

Na primjer, pretvaranje 255: podijelite 255 s 16, kvocijent je 15 i ostatak 15. Budući da 15 odgovara F, hex rezultat je FF.

⚡ Isprobajte — Interaktivni dijagram dijeljenja

Decimalni u heksadecimalni Formula

Formula koristi ponovljeno dijeljenje bazom (16).

N ÷ 16 = Q ostatak R
N = decimalni cijeli broj · Q = kvocijent · R = ostatak (0–15)
1Podijelite N s 16. Zapišite kvocijent Q i ostatak R.
2Pridružite R hex znamenki (0–9 ostaju, 10→A, 11→B, … 15→F).
3Zamijenite N s Q. Ponavljajte dok Q = 0.
4Pročitajte hex znamenke obrnutim redoslijedom — to je rezultat.

Metoda pretvorbe korak po korak

Koristite vizualizator ispod za promatranje algoritma ponovljenog dijeljenja i ostatka.

Unesite decimalni broj iznad i kliknite "Vizualiziraj"
za animirani prikaz pretvorbe korak po korak.

Konačni heksadecimalni rezultat

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.