Hexadecimal Converter
0xFF = 255 = 11111111. Convert hex to decimal, binary and octal up to 4,096 digits, read signed int8–int64 values, and turn text into hex bytes and back.
Still loading. If the tool doesn’t appear, reload this page.
About this tool
Hexadecimal Converter
Convert hex to decimal, binary and octal up to 4,096 digits, read signed values, and convert text to hex bytes and back.
Hexadecimal is base 16: digits 0–9 then A–F for 10–15, each worth 16 times the digit to its right. So 0xFF = 15 × 16 + 15 = 255, or 11111111 in binary, and 0x1A3F = 6,719. Convert between hex, decimal, binary and octal, or text and hex bytes (Hi = 48 69).
How to use Hexadecimal Converter
Type a number into the Hexadecimal, Decimal, Binary or Octal box (or tap an example); the other three update as you type.
Read the digit-by-digit breakdown and, for programming, the value as a signed int8, int16, int32 or int64.
To convert text, choose Text → Hex or Hex → Text and paste into the left box; copy the result or Swap it back.
Why use Hexadecimal Converter
No 32-bit or 64-bit cap
BigInt arithmetic, so 64-bit addresses and longer values, up to 4,096 digits, convert exactly.
Four bases at once
Hex, decimal, binary and octal, each editable and copyable.
Signed values
Two's-complement readings at 8, 16, 32 and 64 bits for the widths the value fits in, and the stored hex pattern of a negative number (−1 is 0xFF as int8).
Text ⇄ hex
UTF-8 bytes, so accented letters and emoji round-trip, and a leading byte order mark (EF BB BF) is kept; accepts spaces, commas, colons, 0x and \x.
Common use cases
- Reading a register dump, memory address or error code in hex and needing the decimal or binary value.
- Checking whether 0xFFFFFFFF is −1 or 4,294,967,295 for the integer type you are using.
- Decoding a hex string from a log, packet capture or URL into readable text, or encoding text as hex bytes.
Frequently asked questions
How do I convert hex to decimal?
Multiply each digit by 16 raised to its position, counting from 0 on the right, and add the results. 0x1F = 1 × 16 + 15 = 31, and 0x1A3F = 1 × 4096 + 10 × 256 + 3 × 16 + 15 = 6,719.
Link to answerHow do I convert decimal to hex?
Divide by 16 repeatedly and write the remainders from last to first, using A–F for 10–15. 255 ÷ 16 = 15 r15, 15 ÷ 16 = 0 r15, so 255 = FF. 4,096 = 0x1000.
Link to answerHow do I convert hex to binary?
Replace each hex digit with its 4-bit pattern: F = 1111, A = 1010, 3 = 0011. So 0x3A = 0011 1010 and 0xFF = 1111 1111. The hex digits table on this page lists all sixteen.
Link to answerHow do I convert text to hex?
Encode the text as bytes (UTF-8) and write each byte as two hex digits. “Hi” is 48 69 and “é” is C3 A9. Use Text → Hex here; Hex → Text reverses it.
Link to answerWhy is 0xFF sometimes −1?
In an 8-bit signed (two's-complement) integer, values from 0x80 to 0xFF are negative, and 0xFF is −1. As an unsigned byte, or in a wider type, it is 255. The signed-integer panel shows each reading.
Link to answerEmbed this tool on your site
Add the Hexadecimal Converter widget to your blog or website — free, responsive, no signup. Just keep the “Widget by AltFTool” credit link visible.
<iframe src="https://www.altftool.com/embed/widget/hexadecimal-converter"
title="Hexadecimal Converter — free AltFTool widget"
width="100%" height="640" style="border:0;border-radius:12px;overflow:hidden"
loading="lazy" referrerpolicy="no-referrer-when-downgrade" allow="clipboard-write"></iframe>
<p style="font-size:12px;margin:4px 0 0">Widget by <a href="https://www.altftool.com/tools/all/hexadecimal-converter?utm_source=embed&utm_medium=widget" rel="nofollow">AltFTool — free online tools</a></p>