RevealTheme logo

Konwerter binarny na szesnastkowy

Konwertuj liczby binarne na szesnastkowe. System szesnastkowy jest 4 razy bardziej zwarty niż binarny dla tej samej wartości.

Jak korzystać z tego narzędzia

  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.

Czym jest konwerter binarny na szesnastkowy?

System binarny używa podstawy 2 (cyfry 0 i 1); system szesnastkowy używa podstawy 16 (cyfry 0-9 oraz A-F). Każda cyfra szesnastkowa odpowiada dokładnie 4 cyfrom binarnym, dlatego system szesnastkowy jest znacznie bardziej zwartym sposobem zapisywania dużych liczb binarnych. Ta konwersja jest podstawowa w programowaniu, debugowaniu zrzutów pamięci oraz odczytywaniu kodu maszynowego.

Typowe przypadki użycia

  • 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.

Najczęściej zadawane pytania

Dlaczego system szesnastkowy jest preferowany nad binarnym?
System szesnastkowy jest 4 razy krótszy dla tej samej wartości, łatwiejszy do odczytania przez ludzi i nadal czysto odwzorowuje się na system binarny.

Powiązane narzędzia