DuckyTools
Home Developer String Escaper

String Escaper Developer

Escape or unescape text for JSON, JavaScript, CSV and shell arguments.

String Escaper is a free online tool that escape or unescape text for JSON, JavaScript, CSV and shell arguments. It runs entirely in your web browser using plain JavaScript, so files are processed on your own device and never uploaded to a server. There is no sign-up, no file size limit imposed by the site, no watermark and no paid tier.

Price
Free — no account, no quota, no watermark
Category
Developer
Where it runs
In your browser, on your device
Files uploaded
None
Technology
plain JavaScript
Settings
2
Works offline
Yes, after the first visit

About String Escaper

String Escaper is one of 43 developer tools on DuckyTools, and like all of them it runs entirely inside this page. Escape or unescape text for JSON, JavaScript, CSV and shell arguments.

How to use it

  1. Paste the text you want to run through string escaper.
  2. Set target and direction.

The 2 settings

SettingWhat it doesDefault
TargetChoose from 4: JSON / JavaScript, CSV field, Shell argument, Regular expression.JSON / JavaScript
DirectionChoose from 2: Escape, Unescape.Escape

Under the hood

Runs onplain JavaScript — runs the whole thing
ControlsTarget, Direction

Questions

What does the target option change?

It offers 4 choices — JSON / JavaScript, CSV field, Shell argument and Regular expression. The default is JSON / JavaScript, which suits most cases; change it when your input or your destination calls for something specific.