DevToolBox

HEX Converter

テキスト・HEX・バイナリを相互変換します。スペース区切りの16進数形式に対応。

広告スペース
 

How to Use the HEX Converter

This free online HEX converter lets you convert between text, hexadecimal, and binary formats instantly in your browser. Select a conversion mode from the tabs at the top, enter your input, and see the result immediately. The tool supports four conversion directions: Text to HEX, HEX to Text, HEX to Binary, and Binary to HEX. All hexadecimal output uses space-separated uppercase format (e.g., "48 65 6C 6C 6F" for "Hello"), which is the most commonly used format in debugging, network analysis, and data inspection tools.

Understanding Hexadecimal Notation

Hexadecimal (base 16) is a numeral system that uses sixteen distinct symbols: the digits 0 through 9 represent values zero to nine, and the letters A through F represent values ten to fifteen. Each hex digit represents exactly four bits (a nibble), making it a convenient shorthand for binary data. Two hex digits represent one byte (8 bits), which can hold values from 00 to FF (0 to 255 in decimal). This compact representation is why hexadecimal is ubiquitous in computing -- from color codes in CSS (#FF5733) to memory addresses, MAC addresses, and raw data dumps.

Text to HEX Conversion

When converting text to hexadecimal, each character is first encoded as bytes using UTF-8 encoding, then each byte is represented as a two-digit hexadecimal number. ASCII characters like letters and digits produce one byte (two hex digits) each, while non-ASCII characters such as Japanese, Chinese, or emoji produce multiple bytes. For example, the letter "A" becomes "41", while a Japanese character like "a" becomes "E3 81 82" (three bytes in UTF-8). This conversion is useful for inspecting raw byte content, debugging encoding issues, and preparing data for protocols that require hex-encoded payloads.

Binary and HEX Interconversion

Converting between binary and hexadecimal is straightforward because each hex digit maps to exactly four binary digits. For example, hex "4F" equals binary "01001111". The tool expects space-separated groups of 8 binary digits (one byte each) for Binary to HEX conversion, and space-separated pairs of hex digits for HEX to Binary conversion. This is essential for low-level programming, hardware design, and understanding bit-level data representations. Input validation ensures that only valid characters are accepted, with clear error messages in Japanese for any invalid input.

Features

  • Four conversion modes: Text to HEX, HEX to Text, HEX to Binary, Binary to HEX
  • Space-separated hex format for readability
  • UTF-8 encoding for text conversion
  • Input validation with Japanese error messages
  • One-click copy to clipboard
  • Client-side only -- your data stays in your browser

HEX変換ツールの使い方

この無料オンラインツールは、テキスト・HEX(16進数)・バイナリの相互変換を行います。 上部のタブから変換モードを選択し、入力欄にデータを入力すると即座に結果が表示されます。 4つの変換方向に対応しており、全ての処理はブラウザ上で完結します。

16進数とは

16進数は0-9とA-Fの16個の記号を使う記数法です。2桁の16進数で1バイト(0-255)を表現でき、 バイナリデータの簡潔な表記として広く使われています。CSSの色コード(#FF5733)、 メモリアドレス、MACアドレスなど、プログラミングの様々な場面で登場します。

テキストとHEXの変換

テキストからHEXへの変換では、UTF-8エンコーディングでバイト列に変換した後、 各バイトを2桁の16進数で表現します。ASCII文字は1バイト、日本語文字は通常3バイト、 絵文字は4バイトとなります。エンコーディングの問題をデバッグする際に便利です。

広告スペース

開発をもっと効率的に

PR

広告スペース