How to Use the Unicode Escape Generator
- Type or paste your text into the input box above.
- Your converted text appears instantly as you type.
- Click Copy and paste it into JavaScript, JSON and other source code.
What Is Unicode Escape Sequences?
A Unicode escape sequence writes a character as a backslash, the letter u and its hexadecimal code, such as \u0041 for A. Developers use these escapes to include special characters in source code safely.
Unicode Escape Generator Examples (Copy and Paste)
Here is what this generator produces from a few sample phrases:
- Hi → \u0048\u0069
- café → \u0063\u0061\u0066\u00E9
- A1 → \u0041\u0031
Where to Use Unicode Escape Sequences
Use it when a string in JavaScript or JSON must avoid non-ASCII characters, or when you want to see the exact code point of a character.
Good to Know
Characters outside the basic range, such as many emoji, are written with a longer \u{…} form on this page. Different programming languages use slightly different escape syntax, so check the one you use.