RevealTheme logo

Binair-naar-hexadecimaal-converter

Zet binaire getallen om naar hexadecimaal. Hexadecimaal is voor dezelfde waarde 4 keer compacter dan binair.

Hoe u deze tool gebruikt

  1. 1

    Type or paste your binary digits into the input box. Whitespace between groups is fine and gets stripped automatically.

  2. 2

    Read the uppercase hexadecimal result in the box below, which updates instantly as you type.

  3. 3

    Copy the hex value out for use in your code, config, or documentation.

Wat is de binair-naar-hexadecimaal-converter?

Binair gebruikt grondtal 2 (cijfers 0 en 1); hexadecimaal gebruikt grondtal 16 (cijfers 0-9 en A-F). Elk hexadecimaal cijfer komt precies overeen met 4 binaire cijfers, waardoor hexadecimaal een veel compactere manier is om grote binaire getallen te schrijven. Deze conversie is essentieel voor het programmeren, het debuggen van geheugendumps en het lezen van machinecode.

Veelvoorkomende toepassingen

  • Shorten a long binary literal from a datasheet or register map into compact hex for your firmware code.

  • Translate a binary permission or flag mask into the hex form your config file or API expects.

  • Check a binary value by hand against the hex shown in a debugger or memory viewer.

  • Convert binary output from a logic exercise or homework problem into hex to verify your answer.

  • Turn a binary representation of an RGB channel into the hex pair used in CSS color codes.

  • Prepare hex constants for embedded registers when your reference material only lists the bit pattern in binary.

Veelgestelde vragen

Waarom wordt hexadecimaal verkozen boven binair?
Hexadecimaal is voor dezelfde waarde 4 keer korter, voor mensen makkelijker te lezen en wordt nog steeds netjes toegewezen aan binair.

Gerelateerde tools