Unicode Escape Converter

Unicode Escape Converter

Encode text as \uXXXX or \u{...} and decode Unicode escapes. Validates emoji surrogate pairs and Unicode code point ranges.

Input and results are processed in browser memory. This tool does not upload or save them; resetting or leaving the page clears them. Shared advertising and visitor analytics may operate separately, but individual input contents are not included in tool-use events.

Comments & questions

Unicode Escape Converter

Represent each character using JavaScript Unicode escapes. UTF-16 mode represents supplementary characters with two surrogate escapes; code point mode uses forms such as \u{1F600}. This tool does not execute JavaScript or parse complete JavaScript or JSON string literals.

Key features

  • Choose UTF-16 \uXXXX or code point \u{...} output.
  • Decode a mixture of the two escape formats and plain characters.
  • Reject unpaired surrogates and out-of-range code points.

How to use

  1. Choose encoding or decoding.
  2. For encoding, select the output format and enter text. For decoding, enter Unicode escapes.
  3. Run the conversion and copy the result. Quotes are not automatically added or removed.

Use cases

  • Read escaped Unicode text found in source code.
  • Inspect the UTF-16 surrogate representation of emoji.
  • Create Unicode escape examples for test data.

Frequently asked questions

What is the difference between the formats?

\uXXXX represents one UTF-16 code unit, so a character above U+FFFF requires two units. JavaScript’s \u{...} form represents a code point directly.

Does decoding handle \n or \t?

No. Only Unicode escapes are decoded. Other backslash escapes produce an error; use a JSON string tool for general JSON escape handling.

Should I surround input with quotes?

No. Quotes are treated as ordinary characters and remain in the result. This is not a parser for complete JavaScript string literals.

Why can an emoji escape be rejected?

A UTF-16 high surrogate must be followed by a low surrogate. Lone surrogates and values above U+10FFFF are rejected.

Privacy

Input and results are processed in browser memory. This tool does not upload or save them; resetting or leaving the page clears them. Shared advertising and visitor analytics may operate separately, but individual input contents are not included in tool-use events.

Related Tools

Indent ConverterNumber Base ConverterUnicode InspectorWasm Module InspectorHreflang Matrix CheckerAST Query PlaygroundContainer Build GraphDependency Graph ExplorerSemver Range LabCron Schedule AuditorPatch Review WorkbenchSource Map ExplorerLocalization Catalog AuditorStructured Data ReviewerHTTP Archive AnalyzerWebhook Signature LabProtobuf Schema WorkbenchGraphQL Schema LabAvro Schema EvolutionLocal SQL WorkbenchSchema Form BuilderMesh Repair WorkbenchPipe Network LabRobot Arm Kinematics LabThermal Network LabBeam Response LabGear Train DesignerTolerance Stackup LabSensor Calibration FitPCB Stackup PlannerDigital Filter DesignerNetwork Reachability MapSun Shadow MapGPS Error SimulatorDigital Logic SimulatorAnalog Circuit LabMechanism Linkage LabAnalysis Mesh GeneratorOpenAPI Contract InspectorDatabase Migration PlannerDimensional Equation CheckerTruss Force LabBoolean Minimization LabControl Response LabQueueing Simulation LabGeofence Event SimulatorCoordinate Reference LabSurvey Traverse LabRaster Classification LabChoropleth Design LabMap Print ComposerRaster Reprojection LabElevation Contour MakerTerrain Viewshed LabWatershed DelineatorMap Tile PackagerText File Encoding WorkbenchFilesystem Portability AuditorSBOM License ExplorerFile Signature Auditornpm Lockfile Conflict ResolverSource Secret AuditorOffline Web Package BuilderCertificate Chain InspectorTorrent Metainfo InspectorChunked File PackagerEncrypted File VaultDuplicate File FinderArchive WorkbenchDesign Token ManagerSpacing Token DesignerResponsive Type SystemPackaging Dieline DesignerSVG Icon Sprite PackerFlex Layout PlaygroundCSS Grid PlaygroundRegex Equivalence LabMarkdown Repository AuditorLog Template MinerResponsive Layout AuditorEmail Template PreviewInternal Link GraphState Machine TesterPetri Net SimulatorGit History VisualizerCurl Request WorkbenchBinary Protocol DesignerHex File EditorBinary Patch WorkbenchFile Signature WorkbenchAPI Mock SandboxSchema Column MapperEvent Log SessionizerER Diagram DesignerTime Series Gap AuditorStratified Data SplitterData Lineage DesignerDecision Tree LabData Anonymization WorkbenchData Expectation RunnerJSON Schema ValidatorBasket Pattern AnalyzerRobots Policy TesterSEO HTML AuditorAccessibility Structure AuditorSyndication Feed WorkbenchIndexNow Payload BuilderCrawl Log AnalyzerCSP Policy WorkbenchSearch Performance AnalyzerCSV Formula Risk AuditorCORS Response SimulatorCache Header LabCookie Policy InspectorWeb Vitals Trace LabSitemap Health AuditorBatch File RenamerFile Manifest VerifierFolder Space MapFolder Difference ReviewerRoute Order OptimizerGeoJSON Map EditorPolygon Overlay LabCartographic Label PlacerSpatial Table JoinGeoJSON Topology AuditorGPX Track AnalyzerTrack Privacy RedactorCSV Table JoinCSV Pivot WorkbenchScientific Data ProfilerTabular Cleaning WorkbenchRecord ReconciliationData Dictionary BuilderCanonical Graph AuditorRedirect Plan TesterHTTP response and ping reference testBrowser and System InformationJSON ↔ YAML ConverterXML ↔ JSON ConverterHTML FormatterJavaScript MinifierMock Data Generator.gitignore GeneratorLicense GeneratorUser-Agent ParserPassword Strength CheckerCode to ImageXML FormatterHTTP Status Code LookupMIME Type LookupJS & SQL String EscapeCSS Box Shadow GeneratorCSS Gradient GeneratorJSON Structure DiffMarkdown Table GeneratorBase64 EncoderJSON FormatterURL EncoderSQL FormatterCron Expression GeneratorRegex TesterUUID GeneratorHash GeneratorTimestamp ConverterJWT DecoderHTML Entity ConverterMarkdown PreviewCSS MinifierMeta Tag GeneratorJSON ↔ CSVCase ConverterImage to Base64
Explore all Dev Tools tools →Image/Media →Text/Convert →Life/Fun →