DevToolBoxFREE
Blog

Escape / Unescape Tool Online Free — JSON, HTML, URL, SQL Escape

Escape special characters for HTML, JavaScript, or JSON. Unescape encoded strings. Free, no signup required.

𝕏 Twitterin LinkedIn

💬 User Feedback

Have suggestions or found a bug? Leave a message and we'll get back to you.
0/2000

Rate this tool

4.6 / 5 · 223 ratings

Stay Updated

Get weekly dev tips and new tool announcements.

No spam. Unsubscribe anytime.

Enjoy these free tools?

Buy Me a Coffee

How to Use

  1. Select the escaping format: HTML, JavaScript, or JSON
  2. Choose Escape or Unescape mode
  3. Paste your text into the input area
  4. Copy the escaped or unescaped result

Common Use Cases

  • Sanitizing user input before rendering in HTML
  • Preparing strings for JSON API payloads
  • Debugging escaped characters in log files
  • Building safe JavaScript string literals

Frequently Asked Questions

What is the difference between HTML and JavaScript escaping?
HTML escaping converts < > & " to HTML entities for safe display in web pages. JavaScript escaping adds backslashes before quotes, newlines, and special characters for safe use in JS strings.
Why do I need to escape strings?
Unescaped strings can cause XSS (cross-site scripting) attacks in HTML, syntax errors in JavaScript, or invalid JSON. Escaping ensures special characters are treated as data, not code.
Can I unescape encoded strings back to plain text?
Yes. Switch to Unescape mode and paste the encoded string. The tool will convert escape sequences back to their original characters.

Мы используем файлы cookie для показа рекламы и анализа трафика. Вы можете выбрать, что разрешить. Политика конфиденциальности