String to Bytes Converter

How to Use This Converter

  1. Input Your Text
    • Type or paste any text string into the input box
    • Supports all Unicode characters (emojis, special symbols)
    • Alternatively, upload a text file using the file button
  2. Select Output Format
    • Choose from hexadecimal, binary, decimal, octal, or Base64
    • Each format displays the byte representation differently
  3. Configure Options
    • Control spacing between bytes for readability
    • Toggle uppercase for hexadecimal output
    • Include ASCII representation where applicable

Technical Details

Character Encoding

All conversions use UTF-8 encoding by default:

  • Supports multi-byte characters (1-4 bytes per character)
  • ASCII characters use 1 byte (compatible with ASCII encoding)
  • Non-ASCII characters use 2-4 bytes as needed

Format Specifications

Output format details:

  • Hexadecimal: Each byte as two hex digits (00-FF)
  • Binary: Each byte as 8 bits (00000000-11111111)
  • Decimal: Each byte as number (0-255)
  • Octal: Each byte as three digits (000-377)
  • Base64: Entire string encoded as Base64

Conversion Examples

Common String Conversions

Input string:

"Hello"

Hexadecimal output:

48 65 6C 6C 6F

Binary output:

01001000 01100101 01101100 01101100 01101111
Need the reverse tool? Convert Bytes to String →