ToolSnippet

Convert Hex to ASCII text and text to Hexadecimal

Decode hex byte dumps into readable text and encode strings into space-separated or prefixed Hex.

About This Tool

Hex to ASCII Converter converts hexadecimal numbers and byte sequences into readable ASCII characters, and encodes plain text into clean hexadecimal values.

Key Features

Bidirectional conversion (Hex <-> ASCII)
Space, continuous, and 0x prefix formatting
Handles arbitrary text length
Instant copy to clipboard

How to Use This Tool

  1. Enter a Hexadecimal string (e.g. 48 65 6c 6c 6f) or plain text.
  2. Choose your preferred Hex formatting (space-separated, continuous, or 0x prefixed).
  3. Click Hex to ASCII or ASCII to Hex to transform.

Why Use This Tool

  • Decode network packet dumps, binary streams, and memory hex values.
  • Cleanly handles spaces, 0x prefixes, and continuous hex strings.
  • 100% client-side decoding with zero external services.

Pro Tips

  • Use 0x prefix mode when exporting hex constants for C, C++, or Solidity smart contracts
  • Ensure non-hex characters like punctuation are stripped before decoding

Frequently Asked Questions

Does it matter if hex characters are uppercase or lowercase?

No, the decoder supports both uppercase (4A) and lowercase (4a) hexadecimal characters.

What happens if the hex string has an odd length?

Hex strings must have an even number of digits (2 hex digits per ASCII byte). An error will be shown if invalid.

Related Tools