RevealTheme logo

ASCII 轉十六進位轉換器

將文字轉換為 ASCII 十六進位碼,或進行反向轉換。每個字元都會轉換為其 2 位數的十六進位值。

如何使用本工具

  1. 1

    Pick a direction from the dropdown: 'Text -> Hex' to encode, or 'Hex -> Text' to decode.

  2. 2

    Type or paste your input into the text box.

  3. 3

    Read the converted result in the output box below — it updates live as you type.

  4. 4

    For decoding, separate each hex value with a space (for example '48 65 6C 6C 6F').

什麼是 ASCII 轉十六進位轉換器?

你文字中的每個字元都對應一個數字(基礎拉丁字元用 ASCII,其他一切則用 Unicode 碼位)。十六進位是表示這些數字的精簡形式:「A」的十進位是 65,十六進位是 41。這種轉換在偵錯文字編碼問題、處理二進位協定或建構跳脫序列時很有用。

常見使用場景

  • Inspecting invisible control characters (tabs, newlines, non-breaking spaces) that are breaking a parser or CSV import.

  • Hand-building escape sequences like \x41 for code, regex, or shell snippets.

  • Decoding a space-separated hex dump pasted from a log, packet capture, or protocol trace back into readable text.

  • Teaching or learning how characters map to numeric codes and base-16 notation.

  • Quickly checking the hex code of a specific symbol before hard-coding it into a config or test fixture.

  • Spotting smart quotes or homoglyphs by confirming whether a character is the plain ASCII version or a higher code point.

相關工具