# Heksasta desimaaliksi > Mikä heksadesimaaliluku on desimaalina? Muuta heksaluku, kuten FF tai 1A3, tavalliseksi desimaaliluvuksi. Muunna heksadesimaaliluku desimaaliksi: kirjoita heksanumerot ja lue koko luku heti, myös binäärinä ja oktaalina. Toimii minkä kokoisille luvuille tahansa. A preset of [Lukujärjestelmämuunnin](https://how.box/fi/number-base/). - Page: https://how.box/fi/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/fi/about/terms/ ## Inputs Answer link: https://how.box/fi/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/fi/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 Heksanumerot kulkevat 0:sta 9:ään ja sitten A:sta F:ään arvoille kymmenestä viiteentoista. Jokainen paikka on arvoltaan 16 kertaa oikealla olevaa suurempi, joten kolminumeroisen heksaluvun paikkojen arvot ovat 256, 16 ja 1. Luvulle 1F4 se tarkoittaa 1 × 256 + 15 × 16 + 4 × 1, mikä on 500. Kirjain F lasketaan viideksitoista, joten se on suurin yksittäinen numero. Heksaluvut tulevat vastaan aina, kun tavuja kirjoitetaan auki: värikoodit kuten #FF8800, muistiosoitteet, virhekoodit ja MAC-osoitteet. Kaksi heksanumeroa on yksi tavu, joten pari on aina välillä 0–255. Toinen esimerkki: 3A7 on 3 × 256 + 10 × 16 + 7 × 1 eli 935. Värikoodi kuten #FF8800 on kolme paria: FF on 255, 88 on 136 ja 00 on 0. Neljä heksanumeroa kattaa luvut 0–65 535. Ohjelmoijat kirjoittavat heksan usein 0x-etuliitteellä, kuten 0x1F4, osoittaakseen, etteivät numerot ole desimaalilukuja. ## FAQ **Mikä FF on desimaalina?** 255: F on viisitoista, ja 15 × 16 + 15 = 255. Se on suurin arvo, jonka yksi tavu voi sisältää. **Mitä värin kaksi heksanumeroa tarkoittavat?** Jokainen pari on yksi värikanava (punainen, vihreä tai sininen) välillä 00–FF, eli desimaalina 0–255. **Onko 0x10 kuusitoista vai kymmenen?** Kuusitoista. Etuliite 0x kertoo, että numerot ovat heksadesimaaleja, ja 10 heksana on 1 × 16 + 0. **Montako arvoa neljään heksanumeroon mahtuu?** 65 536, väliltä 0000–FFFF eli desimaalina 0–65 535. Yksi heksanumero sisältää 16 arvoa, ja 16 × 16 × 16 × 16 on 65 536. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/fi/about/agents/)