RevealTheme logo

2進数→16進数変換ツール

2進数を16進数に変換します。同じ値を表すのに、16進数は2進数より4倍コンパクトです。

このツールの使い方

  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.

2進数→16進数変換ツールとは何ですか?

2進数は基数2(0と1の桁)を使い、16進数は基数16(0〜9とA〜Fの桁)を使います。16進数の1桁は、ちょうど2進数の4桁に対応するため、16進数は大きな2進数をはるかにコンパクトに書く方法です。この変換は、プログラミング、メモリダンプのデバッグ、機械語の読解において基本となるものです。

よくある活用例

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

よくある質問

なぜ2進数より16進数が好まれるのですか?
16進数は同じ値を4分の1の長さで表せ、人にとって読みやすく、それでいて2進数にきれいに対応します。

関連ツール