Unicode Converter

Format

Input

Output

0

Input chars

0

Escape count

0

Output length

About Unicode Converter

Local Unicode escape sequence converter for text

Encode text such as Chinese and emoji to Unicode escape sequences, or decode escape sequences back to readable text. Supports \u, \U, HTML hex, and HTML decimal formats. Ideal for debugging, internationalization, and data analysis, with all processing done locally in your browser.


Features

  • Four formats: \u, \U, HTML hex, and HTML decimal
  • Full support for Chinese, emoji, and surrogate pairs
  • Paste, copy, clear, and swap actions
  • Local browser processing for privacy

How to use

  1. 1Choose encode or decode mode
  2. 2Select a Unicode escape format
  3. 3Enter text or escape sequences
  4. 4Copy the result or swap input and output

FAQ

What is a Unicode escape sequence?
A Unicode escape sequence represents a Unicode code point using a specific syntax, such as \u0041 for 'A', \U0001F600 for a smiling face emoji, or A and A in HTML.
Which Unicode escape formats are supported?
Four formats are supported: \u escape (e.g. \u4f60), \U escape (e.g. \U00004f60), HTML hex (e.g. 你), and HTML decimal (e.g. 你).
How do I decode Unicode escape sequences?
Select decode mode, paste text containing \u or \U escape sequences, and the tool will automatically identify and convert them to readable text. Mixed plain text and escape sequences are supported.
How do I encode text to Unicode escapes?
Select encode mode, enter any text, and the tool generates the corresponding Unicode escape sequences in your chosen format. For example, 'Hi' encodes to \u0048\u0069.
How are emoji and surrogate pairs handled?
Characters outside the Basic Multilingual Plane (BMP), such as emoji, require surrogate pairs. The \u format uses two escapes (e.g. \ud83d\ude00), while \U and HTML formats use the full code point directly.
Is my text uploaded to a server?
No. All encoding and decoding runs locally in your browser, so your text stays on your device.

Related Tools

Online CalculatorFile Type DetectorAudio EditorPDF MergePDF CompressorPassword GeneratorWord CounterText CompareCode FormatterTimestamp ConverterFull Screen Text DisplayBase ConverterBase64 Encoder DecoderURL Encoder DecoderHTML Entity EscapeMD5 EncoderJWT Decode Verify EncodeQR Code Generator & DecoderBarcode GeneratorReal Address GeneratorBMI CalculatorUUID Generator & ParserCountry CapitalsRegex TesterHTTP Status Codes