# Codificatore e decodificatore Base64

> Codifica o decodifica testo UTF-8 in Base64.

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

Tool ID: base64. Requested language: it. Description language: it. Complete guide translation: yes.

## Overview (en)

Base64 encoder decoder converts text to Base64 using the exact UTF-8 bytes, or decodes Base64 back into UTF-8 text. A URL-safe option uses - and _ instead of + and / and omits padding. When decoding, a leading data: URI prefix is removed, and invalid characters, padding or non-UTF-8 bytes are reported as errors.

## Supported tasks (it)

Codifica o decodifica testo UTF-8 in Base64.

## 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)
- Base64 sicuro per URL (it; key: urlSafe; type: checkbox)

## 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 decode a Base64 string?

Turn on Decode, paste the Base64 text and run the tool. Surrounding spaces and a data: URI prefix are removed first, and the result is shown as UTF-8 text.

### What is URL-safe Base64?

URL-safe Base64 replaces + with - and / with _ and leaves out the = padding. Turn on the URL-safe option for both encoding and decoding when working with tokens or URL parameters.

### Can I decode Base64 that contains an image or binary file?

No. Decoded bytes must form valid UTF-8 text, so binary data such as images is rejected. This tool also encodes typed text only, not uploaded files.

### 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

- [JavaScript formatter](https://www.toolcabana.com/it/js-formatter)
- [URL encoder decoder](https://www.toolcabana.com/it/url-encode)
- [CSS beautifier minifier](https://www.toolcabana.com/it/css-formatter)
- [HTML entity encoder](https://www.toolcabana.com/it/html-entities)
