Home Text Tools Math & Numbers Developer Tools Date & Time Image Tools Blog
Text Tools Private & secure

Text to Hex Converter

Convert text to hexadecimal, or decode hex back to readable text.

Encode any text as hexadecimal bytes, or decode hex into readable text. Accents, Arabic and emoji are supported through UTF-8.

Features

Both Directions
Switch between encoding and decoding, or swap the result back.
Flexible Formats
Choose spaces, no separator, 0x or colons.
UTF-8
Works with every language and emoji.

Use Cases: When This Tool Helps

  1. Debug encoding problems

    See the exact bytes behind garbled characters like "é" to find UTF-8 and Latin-1 mix-ups.

    Read the guide →
  2. Write escape sequences in code

    Get \x or 0x byte values for strings in C, Python, JavaScript, or shell scripts.

  3. Inspect network and file data

    Compare text with hex dumps from Wireshark, hex editors, or firmware files.

  4. Learn how Unicode works

    See how Arabic, emoji, and accented letters take two, three, or four bytes in UTF-8.

  5. Create CTF and puzzle challenges

    Hide flags or clues as hex strings for capture-the-flag competitions.

  6. Prepare data for hardware and IoT

    Convert commands or messages into hex for serial devices, LED displays, and microcontrollers.

How to Use

  1. Choose Text to Hex or Hex to Text.
  2. Type or paste your input.
  3. Copy the output.

FAQ

Why does one letter become several bytes?▾

UTF-8 uses more than one byte for characters outside basic English.

What hex formats can I decode?▾

Plain digits, spaces, colons, dashes, 0x and backslash-x prefixes all work.

More Text Tools

Word Counter
Count words, characters, sentences, and reading time
Case Converter
Convert text to uppercase, lowercase, title case, and more
Lorem Ipsum Generator
Generate placeholder text for designs and mockups
Duplicate Line Remover
Remove duplicate lines from any list or block of text
Text Reverser
Reverse characters, words, or entire lines in your text
Find and Replace Text
Find and replace text with regex, case-sensitive, and whole word options
Text Diff Tool
Compare two texts and see differences line by line
Hashtag Extractor
Extract all hashtags from any text or social media post
URL Link Extractor
Extract all URLs and links from any text
IP Address Extractor
Extract IPv4 and IPv6 addresses from any text
Remove Special Characters
Remove special characters from text, keep letters numbers and spaces
Remove Hidden Characters
Remove zero-width spaces, BOM, and other invisible characters
Remove Duplicate Keywords
Remove duplicate keywords from comma or newline separated lists
URL Slug Generator
Convert text to a clean URL-friendly slug
Sort Lines Alphabetically
Sort lines of text A to Z, Z to A, by length, or shuffle
Remove Blank Lines
Remove all empty and blank lines from text instantly
Add Prefix / Suffix to Lines
Wrap each line with a custom prefix and suffix
Text to Binary Converter
Convert text to binary code or binary back to text
Add Line Numbers
Prepend line numbers to each line with custom start and separator
Text Repeat Generator
Repeat any text a specified number of times with custom separators
Markdown to HTML Converter
Convert Markdown to HTML with headings, bold, lists, and more
Word Frequency Counter
Analyze how often each word appears. See keyword density with a sortable frequency table
Morse Code Translator
Translate text to Morse code or decode Morse code back to text instantly
Readability Score Checker
Check Flesch Reading Ease, Flesch-Kincaid Grade, Gunning Fog, and SMOG scores
Emoji Picker
Browse and copy any emoji. Search by name or filter by category. Click to copy
Table to Markdown Converter
Convert CSV or HTML tables to Markdown format. Also convert Markdown tables to CSV
Typing Speed Test
Test your typing speed in WPM with accuracy tracking and multiple difficulties
ASCII Art Generator
Convert text to ASCII art with multiple font styles for banners and README files
Text to Morse Code
Convert text to Morse code and back, with audio playback.
Character Frequency Counter
Analyze text and count character and word frequencies.
Text Summarizer
Automatically extract key sentences from any long text.
Strip HTML and XML Tags
Remove markup tags and keep only the text