Skip to main content

Unicode Escape Converter

Convert between text and Unicode escape sequences (\\uXXXX). Ideal for JSON and JavaScript source code.

 

Format Examples

JavaScript
\u0041 or \u{1F600}

ES6+ also supports \u{} syntax

Python
\u0041 or \U0001F600

Use \UXXXXXXXX for characters outside BMP

HTML
A or 😀

Numeric character reference (hexadecimal)

CSS
\000041 or \01F600

Used in content property, etc.

Share this tool
📖

How to Use

Step 1

Enter Text

Enter Text

Enter text or Unicode escape sequences

Step 2

Select Format

Select Format

Select output format: \\uXXXX, \\UXXXXXXXX, &#xXXXX;, etc.

Step 3

Copy Result

Copy Result

Copy the conversion result

Features

Real-time Conversion

Generate escape sequences in real time as you type

Multiple Formats

Support escape formats for JavaScript, Java, Python, HTML, CSS, and more

Bidirectional Conversion

Convert both text-to-escape and escape-to-text

FAQ

Notation for representing Unicode characters in programming languages. JavaScript uses \\uXXXX, Python uses \\uXXXX or \\UXXXXXXXX.