Skip to main content
Back to Tools
Web Tools

String Escape/Unescape

Encode and decode strings across multiple formats — URL, HTML, JavaScript, Unicode, and Base64 URL-safe. Runs entirely in your browser — your data never leaves your machine.

string escape encode decode url html javascript unicode base64 developer-tools

Published May 28, 2026

All interactive tools run entirely in your browser. Your data never leaves your device.

How It Works

Paste any text and choose an encoding mode. Toggle between encode and decode directions. Use the swap button to quickly reverse the operation on the output.

Modes

  • URL Encode: Percent-encodes special characters for use in URLs (encodeURIComponent)
  • HTML Escape: Converts &, <, >, ", ' to their HTML entity equivalents
  • JS String Escape: Escapes backslashes, quotes, newlines, tabs, and null bytes for JavaScript strings
  • Unicode Escape: Converts non-ASCII characters to \uXXXX or \u{XXXXX} notation
  • Base64 URL: URL-safe Base64 encoding (uses - and _ instead of + and /)

Features

  • 5 encoding modes: URL, HTML, JavaScript, Unicode, Base64 URL-safe
  • Bidirectional: encode and decode in every mode
  • Swap button: quickly reverse input/output
  • Copy output: one-click clipboard copy
  • Private: runs entirely in the browser — no data transmitted