Escape / Unescape — Backslash String Utilities

Convert text to escaped strings (or unescape them) for JavaScript, JSON, and Regex. Customize exactly what gets escaped.

Input
Mode
Text
Advanced Options
Result
Stats
Input contains invisible/bidi control characters.
68Before length
73After length
+5Delta
ReplacementCount
quote(")
2
backslash
1
n
1
t
1

What you can do

  • Escape text for JavaScript, JSON, or Regex literals
  • Unescape sequences like \n \t \xNN \uXXXX \u{…}
  • Customize which quotes/control chars/non-ASCII are escaped
  • Choose Unicode style: \uXXXX or \u{…}
  • View stats (counts & length delta) and copy/download results

Tips

  • JSON strings must always use double quotes and escape " and \\.
  • For Regex, escape meta characters like [ ] ( ) . * + ? and optionally / when used inside /.../.

Frequently Asked Questions (FAQs)

Why Use ToolMateX

Tired of bloated tool websites with 10 ads per click? This platform is built for speed, simplicity, and reliability. Whether you're debugging JSON or testing colors, we’ve got your back.

Free to Use, Forever
Free to Use, Forever

All tools run right in your browser, fast, reliable, and available whenever you need them. No ads, and nothing to install.

Explore Tools
Works Offline (Most of Them)
Works Offline (Most of Them)

Most of my tools work directly in your browser without needing a server. Perfect for fast workflows (even if you’re offline).

Try it in airplane mode
Made by a 1-Person Team
Made by a 1-Person Team

Made by someone who actually uses these tools daily. It’s fast, clean, and made with your workflow in mind, not corporate KPIs.

Read the story