Text to Hex Converter

Convert text to hexadecimal representation instantly

Hexadecimal representation will appear here

How to use this Text to Hex Converter:

  1. Enter your text in the left input box or upload a text file
  2. Select your preferred output format for the hex representation
  3. Choose the appropriate text encoding (UTF-8 for most text)
  4. Click Convert to transform your text to hexadecimal
  5. View the hexadecimal output in the right panel
  6. Click Copy to copy the hex to clipboard
  7. Click Clear All to reset both input and output
  8. For quick conversion, use the keyboard shortcut Ctrl+Enter (Windows) or Cmd+Enter (Mac)

About Hexadecimal Encoding:

  • Hexadecimal (base-16) is a numerical system using 16 symbols (0-9, A-F)
  • Each character in your text is converted to its hexadecimal byte representation
  • Different output formats:
    • Spaced: Each byte separated by space (48 65 6C 6C 6F)
    • Continuous: All bytes concatenated (48656C6C6F)
    • Prefixed: Each byte prefixed with 0x (0x48 0x65 0x6C 0x6C 0x6F)
    • Escape Sequences: C-style hex escapes (\x48\x65\x6C\x6C\x6F)
  • Encoding options:
    • UTF-8: Variable-width character encoding (1-4 bytes per character)
    • UTF-16: Fixed-width encoding (2 or 4 bytes per character)
    • ASCII: 7-bit encoding (1 byte per character, values 0-127)
  • Hexadecimal representation is commonly used in programming, debugging, and data analysis

Your data is processed in your browser only - we never store or send your input/output to any server