Home › Developer Tools › Hex to Text Converter

Hex to Text Converter

Decode hexadecimal bytes into readable text, or turn text into hex, with correct UTF-8 handling for accents, symbols and emoji. Paste hex in almost any format: spaces, 0x, \x, commas or none. Everything runs in your browser.

Last updated:

Character and byte breakdown
Advertisement

How to use the Hex to Text Converter

  1. Pick a direction: Hex → Text to decode, or Text → Hex to encode.
  2. Paste your input. Hex can be written as 48656c6c6f, 48 65 6c, 0x48,0x65 or \x48\x65; separators are detected automatically.
  3. Choose the encoding: UTF-8 is right for almost all modern text; use ISO-8859-1 for legacy single-byte text.
  4. Set the hex format and letter case when encoding, then press Convert.
  5. Copy the result, swap directions, or download the bytes as a file. Open the breakdown to inspect each character.

ASCII hex reference

HexCharHexCharHexCharHexChar
20space30041A61a
21!31142B62b
22"39948H65e
2C,3A:4FO6Fo
2E.3F?5AZ7Az
0Aline feed (LF)0Dcarriage return (CR)09tab7FDEL

Upper-case letters run from 41 (A) to 5A (Z), lower-case from 61 (a) to 7A (z), and digits from 30 (0) to 39 (9). Adding 20 to an upper-case letter gives the lower-case one.

UTF-8 byte patterns

Code pointsBytesFirst byteExample
U+0000 – U+007F100–7FA → 41
U+0080 – U+07FF2C2–DFé → C3 A9
U+0800 – U+FFFF3E0–EF€ → E2 82 AC
U+10000 – U+10FFFF4F0–F4😀 → F0 9F 98 80

Continuation bytes always fall between 80 and BF. A byte order mark (BOM) at the start of a UTF-8 file is EF BB BF; in UTF-16 it is FF FE (little-endian) or FE FF (big-endian).

Where you meet hex text

  • Programming: escape sequences like "\x48\x69" in C, Python and JavaScript, and byte arrays like {0x48, 0x69}.
  • URLs: percent-encoding writes bytes as %E2%82%AC; for whole URLs use the URL Encoder Decoder.
  • Networking and forensics: packet captures, hex dumps and MAC addresses use colon or space separated bytes.
  • CTF and puzzles: hidden messages are often hex, binary or Base64; see the Binary Translator and Base64 Encoder Decoder.

Frequently asked questions

How do I convert hex to text?

Each pair of hex digits is one byte (00 to FF). The bytes are then decoded with a character encoding: in ASCII and UTF-8, 48 is H, 65 is e and 6C is l, so 48 65 6C 6C 6F is Hello. Paste the hex and the text appears instantly.

Why do some characters take several bytes?

UTF-8 uses 1 byte for ASCII characters, 2 bytes for most accented Latin, Greek and Cyrillic letters, 3 bytes for most other scripts and symbols like € (E2 82 AC), and 4 bytes for emoji such as 👋 (F0 9F 91 8B). This tool decodes and encodes those sequences correctly.

What is the difference between hex to ASCII and hex to UTF-8?

ASCII only defines bytes 00–7F, so it covers English letters, digits and basic punctuation. UTF-8 is identical for those bytes and adds multi-byte sequences for every other character. Choosing UTF-8 is safe for ASCII data too.

Why do I get an odd number of hex digits error?

Every byte needs exactly two hex digits. If the input has, for example, 9 digits, one byte is incomplete; a digit may be missing or a stray character was pasted. With separators, single digits like 0x5 are padded to 05 automatically.

What does the � character mean?

It is the Unicode replacement character. It appears when the bytes are not valid in the selected encoding, for example a lone C3 byte in UTF-8, or bytes above 7F in ASCII mode. Try ISO-8859-1 for older files.

Is my data uploaded?

No. Conversion uses the browser's own TextEncoder and TextDecoder plus plain JavaScript. Nothing leaves your device.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Binary TranslatorConvert text to binary, hex, octal and back.Base64 Encoder DecoderEncode or decode Base64 text and files, and make data URIs.Text Encoding ConverterDetect and convert text file encodings like UTF-8, UTF-16 and Latin-1.URL Encoder DecoderPercent-encode or decode URLs, query strings and form data.Bluetooth Device ScannerFind nearby Bluetooth LE devices and read their services, characteristics and battery level.Checksum CalculatorCompute 8-bit sum, two's complement LRC, XOR/BCC, NMEA, Fletcher and Internet checksums of bytes.File to C ArrayConvert any file into a C or C++ byte array header, like xxd -i, with const and PROGMEM options.Hex to DecimalConvert hex to decimal instantly with steps and signed mode.JSON to Excel ConverterTurn JSON into a styled .xlsx spreadsheet; nested arrays become their own linked sheets.JSON to CSVConvert JSON data to CSV for spreadsheets.CSV to JSONConvert CSV data to JSON with live preview.Excel to CSVConvert XLSX spreadsheets to CSV.CSV ViewerOpen a CSV or TSV file as a sortable, filterable table.Excel Viewer (XLSX / XLS)Open XLSX, XLS and ODS spreadsheets in your browser without Excel.Line Ending ConverterConvert text and files between CRLF, LF and CR line endings.Markdown to HTMLConvert Markdown to clean HTML with a live editor.XML to JSONConvert XML to JSON with validation.JSON ViewerExplore JSON as a collapsible tree, search keys and values and copy any node's path.TTF to WOFF2 ConverterConvert TTF and OTF fonts to WOFF2 or WOFF and get a ready @font-face CSS snippet.Chmod CalculatorConvert Linux file permissions between checkboxes, octal (755) and symbolic (rwxr-xr-x) notation.JSON to TypeScriptGenerate TypeScript interfaces or types from JSON, with nested types and optional fields.Morse Code TranslatorTranslate text to Morse code and back, then play it as sound or a blinking light, or save a WAV.HTML Table GeneratorBuild HTML tables in an editable grid with styles, header rows, CSV import and live preview.JSON to XML ConverterConvert JSON to well-formed XML with attributes, arrays and pretty print.JSON to YAML ConverterConvert JSON to clean YAML as you type, with indent, quoting and sort options.YAML to JSON ConverterConvert YAML to pretty or minified JSON, with errors pinned to the exact line.HTML to Markdown ConverterTurn HTML or pasted rich text into clean Markdown with tables and live preview.Markdown Table GeneratorBuild Markdown tables in a grid or paste from Excel/CSV, with alignment and preview.JSON ValidatorCheck JSON with the exact line and column of each error, fix tips and one-click auto-fix.Image to Base64Convert images to Base64 data URIs, CSS backgrounds and HTML img tags in your browser.Base64 to ImagePaste a Base64 string or data URI to preview, identify and download the image.JSON CompareCompare two JSON documents and see every added, removed and changed path.Decimal to HexConvert decimal to hex instantly with steps and signed mode.Binary to DecimalConvert binary to decimal instantly with steps and signed mode.Decimal to BinaryConvert decimal to binary instantly with steps and signed mode.Two's Complement CalculatorDecimal to two's complement binary and back for 4-64 bits, with invert-and-add-1 steps.XML to CSV ConverterConvert XML to CSV: detects repeating records, flattens nested data, pick your columns.CSV to XML ConverterConvert CSV to well-formed XML with custom root and row names, escaping and pretty print.Compare Excel FilesCompare two Excel spreadsheets cell by cell, highlight changes and export a diff report.CSV CleanerClean messy CSV in one click: trim spaces, drop empty rows and columns, fix headers, dedupe.CSV VLOOKUP ToolJoin two CSV or Excel files on a key column like VLOOKUP, with left, inner and full joins.Remove Duplicates in ExcelFind and remove or highlight duplicate rows in XLSX or CSV files by the columns you choose.GeoJSON ViewerView GeoJSON on a map, inspect and edit properties, validate against RFC 7946 and export.GPX ViewerOpen GPX tracks on a map with distance, elevation profile, moving time, speed and splits.JSON Repair ToolFix broken JSON automatically: trailing commas, quotes, comments, truncated data, with a diff.Karnaugh Map SolverSolve 2–6 variable K-maps: click cells or enter minterms to get the minimal SOP or POS with groups.Merge Excel FilesCombine XLSX, XLS and CSV files into one workbook or append all rows into a single sheet.Parquet File ViewerOpen Apache Parquet files in your browser: schema, rows, filters and CSV or JSON export.Query CSV with SQLRun SQL on CSV, Excel, JSON and Parquet files in your browser with DuckDB. Join and export.Online Serial MonitorTalk to Arduino, ESP32 and USB serial devices in your browser: log, send, plot and save.Split Excel FileSplit an Excel sheet into several files by row count or by each value in a column, as ZIP.SQL Create Table GeneratorDefine columns, keys, defaults and indexes; get CREATE TABLE SQL for MySQL, Postgres and more.SQL IN Clause GeneratorTurn a pasted list into a SQL IN ('a','b') clause with quoting, dedupe and 1,000-item chunks.SQL Online CompilerRun SQL queries online on SQLite with sample databases, a result grid, CSV export and .db save.SQL to ER DiagramPaste CREATE TABLE statements and get an entity-relationship diagram with keys and links.XML to XSD GeneratorGenerate an XML Schema (XSD) from sample XML: types, occurrences, attributes and namespaces.XML ValidatorCheck if XML is well-formed, see the exact line and column of each error and pretty-print it.Wildcard Mask CalculatorConvert a subnet mask or CIDR to a wildcard mask for ACLs and OSPF, with range and binary.CSV to VCF ConverterConvert a contacts CSV into a vCard (.vcf) file, mapping columns to name, phone, email and more.CSV to YAML ConverterConvert CSV rows to a YAML list of mappings with type inference and delimiter detection.Endianness ConverterSwap byte order of 16, 32 and 64-bit hex values and see big- and little-endian integers and floats.Excel to SQL ConverterTurn an Excel sheet into CREATE TABLE and INSERT statements for MySQL, PostgreSQL, SQLite or SQL Server.Excel to VCF ConverterTurn an Excel contact list into a vCard .vcf file for iPhone, Android, Google or Outlook.Image to C ArrayConvert images to monochrome, RGB565 or RGB888 C arrays for OLED, LCD and TFT displays.JSON Merge ToolDeep-merge two or more JSON objects with array concat, replace or union and a conflict rule.JSONL to CSV ConverterConvert JSON Lines / NDJSON to CSV with flattened columns; streams large files locally.PHP Unserialize OnlineDecode PHP serialize() strings to JSON, a tree or print_r, and serialize JSON back to PHP.SQL Dialect ConverterTranslate SQL between MySQL, PostgreSQL, SQLite, SQL Server, Oracle, BigQuery and more.
See all 129 Data & File Format Converters →