# Escape e unescape di stringhe

> Esegue l'escape e l'unescape di stringhe compatibili con JSON.

[Open tool](https://www.toolcabana.com/it/string-escape) · [Sviluppo e dati](https://www.toolcabana.com/it/category/developer-and-data)

Tool ID: string-escape. Requested language: it. Description language: it. Complete guide translation: yes.

## Overview (en)

String escape unescape converts text into a JSON-compatible escaped string, turning quotes, backslashes, line breaks and tabs into escape sequences. A Unicode format escapes every character as \uXXXX, using surrogate pairs where needed. Decode mode reverses JSON-style escapes and reports invalid sequences.

## Supported tasks (it)

Esegue l'escape e l'unescape di stringhe compatibili con JSON.

## Steps (it)

1. Digita o incolla il testo di origine, oppure carica un esempio.
2. Modifica le impostazioni di base o apri la modalità avanzata per ottimizzare il risultato.
3. Esamina e copia o scarica il risultato. Metti in pausa i risultati in tempo reale per eseguire manualmente. Origini o singole impostazioni superiori a 20.000 caratteri richiedono un'esecuzione esplicita.

## Settings

- Decodifica (it; key: decode; type: checkbox)
- Formato di escape (it; key: style; type: select): json [it], javascript [it], unicode [it]

## Limitations (it)

Le operazioni di testo accettano in genere fino a 2.000.000 di caratteri. Parser, generatori e formule singoli applicano limiti aggiuntivi mostrati dai relativi controlli.

## Example input

```text
Hello ToolCabana
```

## Privacy and connections (it)

Questa operazione elabora i dati di origine nel tuo browser. Copia e download sono azioni esplicite; l'input di origine non viene salvato in un account né in una cronologia.

## Questions (it)

### How do I escape a string for JSON?

Paste the text with the format set to json and run the tool. Double quotes become \", backslashes become \\ and line breaks become \n, without the surrounding quotes.

### Can I convert text to \\u Unicode escapes?

Yes. Choose the unicode escape format. Every character, including plain letters, is written as a \u escape with four hex digits, and characters outside the basic plane use two escapes.

### How do I unescape a JSON string?

Turn on Decode and paste the escaped text. Sequences such as \n, \t and \u00e9 become real characters, and an invalid escape sequence returns an error.

### Dove viene elaborato il mio input?

Questa operazione elabora i dati di origine nel tuo browser. Copia e download sono azioni esplicite; l'input di origine non viene salvato in un account né in una cronologia.

### Quali sono i limiti di input?

Le operazioni di testo accettano in genere fino a 2.000.000 di caratteri. Parser, generatori e formule singoli applicano limiti aggiuntivi mostrati dai relativi controlli.

## Related tools

- [Unicode inspector](https://www.toolcabana.com/it/unicode-inspector)
- [Random test data generator](https://www.toolcabana.com/it/test-data)
- [User agent parser](https://www.toolcabana.com/it/user-agent)
- [SQL INSERT generator](https://www.toolcabana.com/it/sql-insert)
