[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"glossary:en":3,"tool-content:en:hex-converter":4,"published-tools-en":54},[],{"id":5,"documentId":6,"slug":7,"intro":8,"howTo":9,"longContent":10,"createdAt":11,"updatedAt":12,"publishedAt":13,"locale":14,"name":15,"faq":16,"examples":37,"category":38,"seo":48,"localizations":53,"metaTitle":50,"metaDescription":51},126,"hgck8rgw1dsnpxo7qfpdh9gs","hex-converter","\u003Cp>This \u003Cstrong>hex converter\u003C\u002Fstrong> takes a number in any base and shows it in all four at once: decimal, hexadecimal, binary and octal. It reads the input base from prefixes like 0x, handles values up to 64 bits, and gives each base its own copy button.\u003C\u002Fp>","\u003Col>\u003Cli>Type a value such as 255, 0xFF, 1010 or 0o777.\u003C\u002Fli>\u003Cli>Let auto-detect read the base, or set it with the dropdown for ambiguous values.\u003C\u002Fli>\u003Cli>Read the four panels: decimal, hex, binary and octal update as you type.\u003C\u002Fli>\u003Cli>Copy the base you need with its button, or download the full conversion.\u003C\u002Fli>\u003C\u002Fol>","\u003Ch2 id=\"hex-to-decimal\">How do you convert hex to decimal?\u003C\u002Fh2>\n\u003Cp>Hexadecimal is \u003Cstrong>base 16\u003C\u002Fstrong>: the digits 0 to 9 plus the letters A to F, where A is 10 and F is 15. Programmers reach for it because one hex digit maps to exactly \u003Cstrong>four bits\u003C\u002Fstrong>, so a byte of 8 bits is always two hex digits. The binary 11111111 is a mouthful, yet in hex it is just FF.\u003C\u002Fp>\n\u003Cp>To turn hex into decimal, multiply each digit by its power of 16. Take 0xFF: the first F is 15 x 16 = 240, the second F is 15 x 1 = 15, and \u003Cstrong>240 + 15 = 255\u003C\u002Fstrong>. A longer one, 0x1A3, works out to 1 x 256 + 10 x 16 + 3 = 419.\u003C\u002Fp>\n\u003Ch2 id=\"decimal-to-hex\">How do you convert decimal to hex?\u003C\u002Fh2>\n\u003Cp>Go the other way by \u003Cstrong>dividing the number by 16\u003C\u002Fstrong> over and over, keeping each remainder. For 255: 255 \u002F 16 = 15 remainder 15, then 15 \u002F 16 = 0 remainder 15. Read the remainders bottom to top, 15 then 15, which is FF. The tool runs the division for you and shows binary (11111111) and octal (377) at the same time, so you never convert twice.\u003C\u002Fp>\n\u003Ch2 id=\"four-bases\">What does one number look like in four bases?\u003C\u002Fh2>\n\u003Ctable>\u003Cthead>\u003Ctr>\u003Cth>Decimal\u003C\u002Fth>\u003Cth>Hex\u003C\u002Fth>\u003Cth>Binary\u003C\u002Fth>\u003Cth>Octal\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\u003Ctd>10\u003C\u002Ftd>\u003Ctd>A\u003C\u002Ftd>\u003Ctd>1010\u003C\u002Ftd>\u003Ctd>12\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>64\u003C\u002Ftd>\u003Ctd>40\u003C\u002Ftd>\u003Ctd>1000000\u003C\u002Ftd>\u003Ctd>100\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>255\u003C\u002Ftd>\u003Ctd>FF\u003C\u002Ftd>\u003Ctd>11111111\u003C\u002Ftd>\u003Ctd>377\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>4096\u003C\u002Ftd>\u003Ctd>1000\u003C\u002Ftd>\u003Ctd>1000000000000\u003C\u002Ftd>\u003Ctd>10000\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>65535\u003C\u002Ftd>\u003Ctd>FFFF\u003C\u002Ftd>\u003Ctd>1111111111111111\u003C\u002Ftd>\u003Ctd>177777\u003C\u002Ftd>\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Ch2 id=\"base-detection\">How does base detection work?\u003C\u002Fh2>\n\u003Cp>Prefixes win first: \u003Cstrong>0x\u003C\u002Fstrong> means hex, 0b means binary, 0o means octal, the notation most languages use. Without a prefix, any letter from A to F marks the value as hex. A run of only 0s and 1s longer than three digits reads as binary. Everything else reads as decimal.\u003C\u002Fp>\n\u003Ch3>Watch out for ambiguous values\u003C\u002Fh3>\n\u003Cp>A value like 101 is legal in all four bases: 101 in decimal, 257 from hex, 5 from binary, 65 from octal. Auto-detect treats short 0\u002F1 strings as decimal, so reach for the dropdown to force binary when that is what you mean. The same goes for 10, which reads as decimal ten rather than binary two.\u003C\u002Fp>\n\u003Ch2 id=\"64-bit\">How large a number can it handle?\u003C\u002Fh2>\n\u003Cp>The converter runs on BigInt arithmetic, so it stays exact up to \u003Cstrong>18,446,744,073,709,551,615\u003C\u002Fstrong> (0xFFFFFFFFFFFFFFFF), the largest unsigned 64-bit value. Ordinary JavaScript numbers lose precision past \u003Cstrong>2^53\u003C\u002Fstrong>, which is how many online converters quietly corrupt long hashes and memory addresses. This one refuses anything beyond 64 bits instead of rounding it.\u003C\u002Fp>\n\u003Ch2 id=\"where\">Where do you meet each base?\u003C\u002Fh2>\n\u003Cp>Hex turns up in CSS colors (#FF6600), memory addresses, MAC addresses and hash digests. Binary shows up in permission masks and low-level debugging. Octal survives mainly in Unix file permissions, where \u003Cstrong>chmod 755\u003C\u002Fstrong> is octal for rwxr-xr-x. Decimal is what everyone else uses. Moving between them is daily work for anyone reading logs or writing drivers.\u003C\u002Fp>","2026-07-17T11:47:20.451Z","2026-07-17T12:53:32.218Z","2026-07-17T12:53:33.302Z","en","Hex Converter",[17,21,25,29,33],{"id":18,"question":19,"answer":20},703,"How do I convert hex to decimal?","\u003Cp>Multiply each hex digit by its power of 16 and add the parts. For 0xFF: 15 x 16 + 15 = \u003Cstrong>255\u003C\u002Fstrong>. Or type the value here and read the decimal panel directly.\u003C\u002Fp>",{"id":22,"question":23,"answer":24},704,"What does the 0x prefix mean?","\u003Cp>It marks a hexadecimal literal, a convention from the C language that most others adopted. 0xFF and FF are the same value, 255. The tool takes both, plus 0b for binary and 0o for octal.\u003C\u002Fp>",{"id":26,"question":27,"answer":28},705,"Why does 1010 convert as binary but 101 as decimal?","\u003Cp>Auto-detect treats a 0\u002F1 string as binary only when it runs longer than three digits, since short ones like 101 usually mean decimal. Set the base with the dropdown when in doubt.\u003C\u002Fp>",{"id":30,"question":31,"answer":32},706,"How large a number can it handle?","\u003Cp>Up to the full unsigned 64-bit range, \u003Cstrong>18,446,744,073,709,551,615\u003C\u002Fstrong>. The math runs on BigInt, so there is no precision loss along the way, unlike converters built on floating point.\u003C\u002Fp>",{"id":34,"question":35,"answer":36},707,"What is octal still used for?","\u003Cp>Mostly Unix file permissions. chmod 755 sets rwxr-xr-x because each octal digit encodes exactly three permission bits. You will also meet it in some legacy protocols and escape sequences.\u003C\u002Fp>",[],{"id":39,"documentId":40,"uid":41,"name":42,"tagline":43,"hubContent":44,"createdAt":45,"updatedAt":46,"publishedAt":47,"locale":14},19,"nk5esc49yvildfg1590op901","conversion","Conversion","Free converters for numbers, units and text formats.","\u003Cp>Every converter in this category runs in your browser, so your data never leaves your device. Each tool answers as you type, shows how it got there and lets you copy or download the result. Under every converter we keep a short guide with the rules it applies and the edge cases worth knowing before you trust a result.\u003C\u002Fp>","2026-07-17T11:46:43.618Z","2026-07-17T12:29:12.484Z","2026-07-17T12:29:12.872Z",{"id":49,"metaTitle":50,"metaDescription":51,"keywords":52,"metaRobots":52,"structuredData":52,"metaViewport":52,"canonicalURL":52},165,"Hex Converter: Hex to Decimal, Binary and Octal","Convert hex to decimal, decimal to hex, binary and octal in one view. Auto-detects the base, handles 64-bit values, free and instant. No signup.",null,[],{"slugs":55},[56,57,58,59,60,61,62,63,64,65,66,67,7,68,69,70,71,72,73,74,75],"age-calculator","average-calculator","cd-calculator","concrete-calculator","cursive-font-generator","date-calculator","fantasy-name-generator","final-grade-calculator","fraction-calculator","glitch-text-generator","gpa-calculator","grade-calculator","hours-calculator","interest-calculator","military-time-converter","roman-numeral-converter","password-generator","kg-to-lbs-converter","binary-converter","celsius-to-fahrenheit-converter"]