Handy Dev Tools
Simple online tools for everyday tasks.

No favorites

    Base64 Encoder/Decoder
    Markdown to HTML
    HTML to Markdown
    URL Encoder/Decoder
    Unicode Escape Converter
    Unicode Encode/Decode
    SQL Formatter
    SQL Splitter
    JSON Formatter
    XML Formatter
    YAML Formatter
    GraphQL Formatter
    JSON to YAML Conversion
    YAML to JSON Conversion
    JSON to TOML Conversion
    TOML to JSON Conversion
    HTML Entity Encode/Decode
    TOML to YAML Conversion
    YAML to TOML Conversion
    CSV to SQL INSERT Conversion
    Markdown Table Generator
    JSON to XML Conversion
    XML to JSON Conversion
    UUID Generator
    ULID Generator
    Password Generator
    Hash Generator
    Lorem Ipsum Generator
    Lorem Picsum Image URL Generator
    Test Data Generator Tool
    QR Code Generator
    S3 Path Parser & Converter
    IP Address Calculator
    Subnet Split
    Subnet Consolidation
    CloudFront Signed URL Generator
    RDS Connection String Generator
    Coordinate Format Converter
    Geo Format Converter
    JWT Decoder & Parser
    Basic Auth
    Password Strength Analyzer
    Credit Card Validator
    RSA Key Pair Generator
    Case Conversion
    Romaji Conversion
    Roman Numeral Conversion
    Phonetic Code Conversion
    Character Counter
    Text Diff
    HTML Tag Remover
    Regex Tester
    Color Conversion
    Dice Roll
    Crontab generator
    Crontab parser
    Emoji Picker
    DateTime Converter
    HTTP Status Code Search
    Port Number Search
    MIME Type Lookup
    Base64 File Converter
    Image Base64 Encode/Decode
    JSON to XML Conversion
    XML to JSON Conversion
    User-Agent Parser
    URL Parser
    OGP Checker
    Commit Message Generator
    Chmod Calculator
    Terminal GIF Generator
Ctrl+K

Unicode Escape Converter

Convert between text and Unicode escape sequences (\uXXXX) in real time.

Text to escape
Result
Read Only

Format and usage

This tool uses the \uXXXX format (4 hex digits: 0-9, A-F). In Escape mode, each character is converted to \uXXXX; in Unescape mode, \uXXXX is converted back to the original character. The "Insert \u" button appears only in Unescape mode and inserts \u at the cursor. Maximum input length is 10,000 characters.

How to use

About this tool

Converts between text and Unicode escape sequences (\uXXXX) in real time. Supports the format used in JavaScript and JSON. All processing is done in the browser.

How to use

Choose Escape or Unescape, then type or paste text or \uXXXX sequences. The result updates immediately and can be copied. In Unescape mode, use "Insert \u" to insert \u at the cursor.

Options

Direction: Switch between Escape (text→\uXXXX) and Unescape (\uXXXX→text). Format: only \u followed by 4 hex digits (0-9, A-F). Maximum input: 10,000 characters.

Use cases

• Inspecting and converting escaped strings in JavaScript/JSON • Decoding \uXXXX in logs and error messages • Exchanging multilingual text in escape form • Preparing Unicode for regex or code

Code Examples

JavaScript
Read Only
1// Escape (manual)
2"Hello".split('').map(c => '\\u' + c.charCodeAt(0).toString(16).padStart(4,'0')).join('');
3
4// Unescape
5JSON.parse("\u0048\u0065\u006c\u006c\u006f");  // "Hello"
Python
Read Only
1# Unescape
2"\\u0048\\u0065\\u006c\\u006c\\u006f".encode().decode("unicode_escape")  # "Hello"
PHP
Read Only
1json_decode('"\u0048\u0065\u006c\u006c\u006f"');  // "Hello"

How it works

Escape: Each character's Unicode code point is converted to 4‑digit hex \uXXXX. Characters outside the BMP (e.g. emoji) are output as surrogate pairs \uXXXX\uYYYY. Unescape: \uXXXX is matched by regex and restored with String.fromCharCode. Invalid sequences show an error.

Privacy and data

Conversion is done in the browser; input and results are never sent to a server.