# Hex to decimal converter > What is a hexadecimal number in decimal? Turn a hex number such as FF or 1A3 into an ordinary decimal number. Convert a hexadecimal number to decimal: type the hex digits and read the whole number at once, also in binary and octal. Works for numbers of any size. A preset of [Number base converter](https://how.box/number-base/). - Page: https://how.box/hex-to-decimal/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/hex-to-decimal/?v={v}&from={from}&to={to}&upper={upper} - `v` (text): The number, written in the base from. Example: `255`. - `from` (whole number 2 to 36): The base the number is written in, 2–36. Example: `10`. - `to` (whole number 2 to 36): The base to convert to, 2–36. Example: `16`. - `upper` (boolean): Upper-case letters in the result: 1 or 0. Example: `false`. Example answer: https://how.box/hex-to-decimal/?v=255&from=10&to=16&upper=0 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `number_base_convert`: Converts a whole number of any size between bases 2 and 36 (binary, octal, decimal, hexadecimal and the rest). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"number_base_convert","arguments":{"value":"255","from":10,"to":16,"uppercase":false}}}` - GET: https://how.box/mcp/run/number_base_convert?value=255&from=10&to=16&uppercase=false ## How it works Hex digits run from 0 to 9 and then A to F for ten to fifteen. Each place is worth 16 times the one to its right, so a three-digit hex number has places worth 256, 16 and 1. For 1F4 that means 1 × 256 + 15 × 16 + 4 × 1, which is 500. The letter F counts as fifteen, so it is the largest single digit. Hex turns up wherever bytes are written out: colour codes such as #FF8800, memory addresses, error codes and MAC addresses. Two hex digits are one byte, so a pair always lies between 0 and 255. Another example: 3A7 is 3 × 256 + 10 × 16 + 7 × 1, which is 935. A colour such as #FF8800 is three pairs: FF is 255, 88 is 136 and 00 is 0. Four hex digits cover 0 to 65,535. Programmers often write hex with a 0x prefix, as in 0x1F4, to show that the digits are not decimal. ## FAQ **What is FF in decimal?** 255: F is fifteen, and 15 × 16 + 15 = 255. It is the largest value one byte can hold. **What do the two hex digits of a colour mean?** Each pair is one colour channel (red, green or blue) from 00 to FF, that is 0 to 255 in decimal. **Is 0x10 sixteen or ten?** Sixteen. The 0x prefix says the digits are hexadecimal, and 10 in hex is 1 × 16 + 0. **How many values can four hex digits hold?** 65,536, from 0000 to FFFF, which is 0 to 65,535 in decimal. Each hex digit holds 16 values, and 16 × 16 × 16 × 16 is 65,536. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)