# Unicode Escape Converter

Convert text to/from Unicode escape sequences (\uXXXX / \u{XXXXXX}) and apply Unicode normalization (NFC/NFD/NFKC/NFKD)

> Canonical page: https://elysiatools.com/en/tools/unicode-escape-converter

- **Category:** Format Conversion

- **Keywords:** unicode, escape, unescape, normalize, nfc, nfd, nfkc, nfkd, code point, unicode escape converter

## Overview

The Unicode Escape Converter is a utility designed to convert text to and from Unicode escape sequences, such as \uXXXX or \u{XXXXXX}, and apply Unicode normalization forms including NFC, NFD, NFKC, and NFKD. It helps developers and localization specialists handle non-ASCII characters, resolve encoding issues, and standardize text representations across different programming environments.

## Inputs

- **Input Text** (textarea): Enter text or Unicode escape sequences...
- **Operation** (select)
- **Escape Style** (select)
- **Normalization Form** (select)
- **Escape Non-ASCII Only (skip ASCII)** (checkbox)

## When to use

- When you need to embed non-ASCII characters or emojis safely in source code files that require ASCII-only encoding.
- When decoding raw Unicode escape sequences from JSON payloads, logs, or API responses back into readable text.
- When standardizing text inputs using Unicode normalization forms (NFC/NFD/NFKC/NFKD) to ensure consistent string comparison and storage.

## How it works

- Input your raw text or Unicode escape sequences into the text area.
- Select the desired operation: convert text to escape sequences, decode escape sequences back to text, or apply Unicode normalization.
- Configure specific options such as the escape style (e.g., \uXXXX or ES6 \u{XXXXXX}), normalization form, or whether to escape non-ASCII characters only.
- The tool processes the input instantly and outputs the converted or normalized text.

## Use cases

- Encoding localized strings into ASCII-safe escape sequences for Java properties files or legacy JavaScript environments.
- Normalizing user-submitted text inputs to NFC form to prevent duplicate database entries caused by different character representations.
- Decoding obfuscated or escaped Unicode strings found in web application source code, API payloads, or server logs.

## Frequently asked questions

### What is the difference between the \uXXXX and \u{XXXXXX} escape styles?

The \uXXXX style is limited to the Basic Multilingual Plane (BMP), whereas \u{XXXXXX} is the ES6 code point format that supports supplementary characters like emojis without surrogate pairs.

### How does the 'Escape Non-ASCII Only' option work?

When enabled, standard ASCII characters (like English letters and numbers) remain untouched, and only special characters, accented letters, and emojis are converted to escape sequences.

### What are Unicode normalization forms like NFC and NFD?

NFC (Canonical Composition) combines characters (like 'e' and '´' into 'é'), while NFD (Canonical Decomposition) splits them. NFKC and NFKD apply compatibility formatting to standardize symbols.

### Can I convert Hex code points like U+1F600 back to text?

Yes, you can select the 'Hex code point (U+XXXX)' escape style and run the unescape operation to convert them back to standard characters.

### Does this tool support surrogate pairs for older environments?

Yes, you can choose the '\uXXXX Surrogate Pairs' escape style to represent characters outside the BMP using two 16-bit escape sequences.

## Related tools

- [ASCII85 Converter](https://elysiatools.com/en/tools/ascii85-converter): Encode and decode text to/from ASCII85 format (Adobe version)
- [Base32 Converter](https://elysiatools.com/en/tools/base32-converter): Encode and decode text to/from Base32 format with multiple variants
- [Base45 Converter](https://elysiatools.com/en/tools/base45-converter): Encode and decode text to/from Base45 format (RFC 9285)
- [Base58 Converter](https://elysiatools.com/en/tools/base58-converter): Encode and decode text to/from Base58 format with Bitcoin and Ripple variants
- [Base62 Converter](https://elysiatools.com/en/tools/base62-converter): Encode and decode text to/from Base62 format (0-9, A-Z, a-z)
- [Base64 Converter](https://elysiatools.com/en/tools/base64-converter): Encode and decode data to/from Base64 format with URL-safe options
- [Base91 Converter](https://elysiatools.com/en/tools/base91-converter): Encode and decode text to/from Base91 format (ascii+basE91 algorithm)
- [Braille Converter](https://elysiatools.com/en/tools/braille-converter): Convert text to Braille Unicode characters or decode Braille to text

## Samples

- [Hex/Unicode Encoding Format Samples](https://elysiatools.com/en/samples/text-hex-unicode-formats): Examples of hex (\xXX) and unicode (\uXXXX) escape sequence encoding formats
- [Copyright-Free MP3 Audio Samples](https://elysiatools.com/en/samples/mp3-samples): Collection of royalty-free audio samples for testing and development purposes including nature sounds, meditation music, and ambient audio
- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion

## Related content

- [Base, Radix, and Hex Text Encoding Tools](https://elysiatools.com/en/hubs/base-radix-and-hex-encoding-tools): Encode and decode text and bytes across Base32/45/58/62/64URL/Base85/Z85, arbitrary radix (2–36), and hex, plus URL, HTML-entity, and Unicode escape conversion — for JWTs, blockchain IDs, data URLs, and binary inspection.
- [Text Case, Encoding, and Normalization Conversion Tools](https://elysiatools.com/en/hubs/text-convert): Compare text case conversion, character-width conversion, encoding conversion, quoted-printable handling, and inline text normalization tools in one hub.
- [Text Tools](https://elysiatools.com/en/hubs/text-utility): Explore 33 text tools for utility workflows and compare closely related utilities quickly.
- [Text Analysis, Readability, and Content Inspection Tools](https://elysiatools.com/en/hubs/text-analyze): Compare text statistics, language detection, readability scoring, sentiment analysis, moderation review, and pattern analysis tools in one hub.
