Browser tool · Local processing

JavaScript Escape / Unescape Converter

Restore legacy JavaScript escape sequences or use modern encoders for URIs, Unicode, HTML entities and JSON strings. Your input never leaves this page.

Legacy JavaScript · deprecated
URI encoding · modern
String & data formats
● Local processing — no data is sent

Legacy compatibility and modern encoding are not the same

The global JavaScript functions escape() and unescape() are deprecated web-legacy features. They represent UTF-16 code units as %XX or %uXXXX. Modern URI functions use UTF-8 percent-encoding and should be preferred for new applications.

Safety: This tool treats all input as plain text. Decoded JavaScript, HTML and URLs are never executed, rendered or requested.

About “Complete Escape”

The historical Web-Code.org converter was referenced by Google Campaign Manager documentation for a “Complete Escape” operation. This rebuilt mode percent-encodes every UTF-16 code unit so that legacy unescape() can restore the original text. It is provided for compatibility, not recommended for new code.