JSON ਸਟ੍ਰਿੰਗ ਐਸਕੇਪਰ
ਸਾਦੇ ਟੈਕਸਟ ਨੂੰ ਸਹੀ JSON ਸਟ੍ਰਿੰਗ ਵਜੋਂ ਐਸਕੇਪ ਕਰੋ, ਕੋਟਸ, ਨਵੀਆਂ ਲਾਈਨਾਂ ਅਤੇ ਬੈਕਸਲੈਸ਼ ਸਮੇਤ।
ਇਨਪੁੱਟ
ਸੁਝਾਅ: ਚਲਾਉਣ ਲਈ Ctrl + Enter ਦਬਾਓ
ਸੇਵ ਕੀਤੀਆਂ ਸੈਟਿੰਗਾਂ
ਹੇਠਾਂ ਦਿੱਤੀ ਵਿਸਤ੍ਰਿਤ ਮਦਦ ਫਿਲਹਾਲ ਸਿਰਫ਼ ਅੰਗਰੇਜ਼ੀ ਵਿੱਚ ਉਪਲਬਧ ਹੈ।
ਇਸ ਟੂਲ ਬਾਰੇ
Putting a paragraph, an HTML snippet or a Windows file path inside JSON breaks the JSON if quotes, backslashes or line breaks are not escaped. This tool wraps your text in double quotes and escapes everything JSON requires, giving a string literal you can paste straight into a configuration file, an API request body or a test fixture.
ਕਿਵੇਂ ਵਰਤਣਾ ਹੈ
- Paste the raw text, including any line breaks.
- Run the escaper.
- Copy the result, including its surrounding double quotes.
- Paste it as a value in your JSON, after a key and colon.
ਗਣਨਾ ਕਿਵੇਂ ਕੰਮ ਕਰਦੀ ਹੈ
The text is passed to JSON.stringify, which escapes ", \, control characters, line feeds (\n), carriage returns (\r) and tabs (\t), and wraps the result in double quotes.
JSON.stringify(text)ਹੱਲ ਕੀਤੀ ਉਦਾਹਰਨ
A support message reads She said "hi", then a new line, then "then left \ back". Escaping it produces "She said \"hi\"\n…", where the inner quotes became \" and the backslash became \\, so the value can sit inside a JSON object without breaking it.
ਨਮੂਨਾ ਇਨਪੁੱਟ ਅਤੇ ਨਤੀਜਾ
ਹੈਲੋ → "ਹੈਲੋ"
ਸੀਮਾਵਾਂ
- Produces a single string literal, not a full JSON document.
- Does not unescape.
- Up to 100,000 characters.
ਆਖਰੀ ਅੱਪਡੇਟ:
ਅਕਸਰ ਪੁੱਛੇ ਜਾਂਦੇ ਸਵਾਲ
Do I need to escape non-English characters?
No. JSON allows UTF-8 text directly; only quotes, backslashes and control characters must be escaped.
How do I unescape a JSON string?
Paste the full JSON into the JSON formatter, or parse it in your code.
Why are there quotes around the output?
A JSON string literal includes its quotes. Remove them only if your template adds its own.
ਸਮੱਸਿਆ ਹੱਲ
Backslashes doubled again when I re-ran it.
You escaped already-escaped text. Start from the original raw text.
The JSON still breaks.
Check that you pasted the whole result including both outer quotes.
Line breaks show as \n in my app.
That is the escaped form in JSON; parsing the JSON turns them back into real line breaks.
ਪਰਦੇਦਾਰੀ & ਮੁਫ਼ਤ ਵਰਤੋਂ
ਕੀ ਮੇਰਾ ਡਾਟਾ ਸਟੋਰ ਹੁੰਦਾ ਹੈ?
ਤੁਹਾਡਾ ਡਾਟਾ ਇਸੇ ਟੈਬ ਵਿੱਚ ਰਹਿੰਦਾ ਹੈ। ਸਾਨੂੰ ਤੁਹਾਡੀਆਂ ਫਾਈਲਾਂ, ਪੇਸਟ ਕੀਤਾ ਟੈਕਸਟ ਜਾਂ ਗਣਨਾ ਦੇ ਮੁੱਲ ਨਹੀਂ ਮਿਲਦੇ।
ਕੀ ਇਹ ਟੂਲ ਮੁਫ਼ਤ ਹੈ?
ਹਾਂ। ਕੋਈ ਸਾਈਨਅੱਪ ਜਾਂ ਭੁਗਤਾਨ ਨਹੀਂ ਚਾਹੀਦਾ।
ਇਹ ਵੀ ਦੇਖੋ
ਅਗਲੇ ਲਾਭਦਾਇਕ ਕਦਮ
JSON ਫਾਰਮੈਟਰ ਅਤੇ ਵੈਲੀਡੇਟਰ
JSON ਨੂੰ ਆਪਣੇ ਡਿਵਾਈਸ ਉੱਤੇ ਜਾਂਚੋ, ਸੋਹਣਾ ਬਣਾਓ ਜਾਂ ਛੋਟਾ ਕਰੋ। ਗਲਤ ਡਾਟਾ ਕਦੇ ਸਰਵਰ ਨੂੰ ਨਹੀਂ ਭੇਜਿਆ ਜਾਂਦਾ।
ਡਿਵੈਲਪਰ ਅਤੇ SEOCSV ਤੋਂ JSON ਕਨਵਰਟਰ
CSV ਹੈਡਰ ਅਤੇ ਰਿਕਾਰਡ JSON ਵਿੱਚ ਬਦਲੋ, ਕੋਟਸ ਵਾਲੇ ਡਿਲੀਮੀਟਰ ਅਤੇ ਲਾਈਨ ਬ੍ਰੇਕ ਸਮੇਤ।
ਡਿਵੈਲਪਰ ਅਤੇ SEOJSON ਤੋਂ CSV ਕਨਵਰਟਰ
ਆਬਜੈਕਟਾਂ ਦੀ ਸਮਤਲ ਸੂਚੀ ਨੂੰ CSV ਵਿੱਚ ਬਦਲੋ। ਸਪ੍ਰੈਡਸ਼ੀਟ ਲਈ ਫਾਰਮੂਲੇ ਵਰਗੇ ਟੈਕਸਟ ਅੱਗੇ ਸੁਰੱਖਿਆ ਚਿੰਨ੍ਹ ਲੱਗਦਾ ਹੈ।
ਡਿਵੈਲਪਰ ਅਤੇ SEO