01 / Example
Example
0xFF255Text & code / MULTIVERTO
Read a hexadecimal whole number as an exact decimal integer.
Apply each text tool to the previous result. Text workflows ↗
Only the recipe name and tool order are saved in this browser. Your input and results are never saved.
01 / Example
0xFF25502 / Guide
Read a hexadecimal whole number as an exact decimal integer. Use this direction when a debugging trace, memory map or specification shows a whole number with hex digits and you want its familiar decimal value. You may enter FF or 0xFF; upper- and lowercase A through F have equal value. The prefix is a clue to the base and does not add to the number.
Each hex digit is weighted by a power of sixteen; the optional 0x prefix identifies the base. Each digit is weighted by a power of sixteen: in FF, the first F is fifteen times sixteen and the second F is fifteen, totaling 255. The result is an exact integer even for values beyond JavaScript’s safe floating-point integer range because the tool uses BigInt. A leading minus sign stays mathematical; no fixed-width signed decoding is performed.
Expand a hex value by weighting each digit from the right by powers of sixteen. The input is a hexadecimal integer, not a CSS color code or a dump of bytes with an implied byte order.
In 0x10, the 1 contributes sixteen and the trailing zero contributes nothing, so the decimal value is 16 rather than 10. A leading 0x and letter case do not affect the value. This tool reads a mathematical integer; it does not interpret a HEX color, a memory dump’s byte order or a signed two’s-complement field. If a register specification gives a width, decode that representation first or retain the original bits for the later signed interpretation. Keeping both notations in a debugging note makes mistakes easier to trace.
For a concrete check, the example input 0xFF produces 255. Weight the rightmost hex digit by one, then each place to its left by the next power of sixteen. Uppercase and lowercase letters have the same digit values. Preserve the original notation if you need to match a log entry or bit mask later; the decimal total alone hides its grouping. A specified register width or two’s-complement interpretation must be applied after this mathematical conversion. Read the hexadecimal input as an integer representation before assigning it a machine width. A leading minus sign describes a negative mathematical value; a leading zero may be meaningful to a file format even though it does not change that value. If the source is a memory dump, confirm its byte order and signedness in the protocol before using this decimal answer. Compare a short value by hand using powers of sixteen, then check a longer identifier against the original string. Returning to hexadecimal may preserve the number while dropping formatting such as leading zeros.
Explore guides