Base64 Encode Online

The most flexible Base64 encoder: encode plain text, any local file or a remote URL. You can pick the character set used for text, the Base64 standard (standard, MIME, URL-safe, PEM, IMAP and more) and the output format. Enable live mode to encode as you type.

Come usare lo strumento Base64 Encode Online

  1. Scegli il tipo di dati: Testo, File locale o URL remoto.
  2. Per il testo, puoi scegliere la codifica dei caratteri (UTF-8 è quella predefinita e quella che la maggior parte dei sistemi si aspetta).
  3. Scegli lo standard Base64 e il formato di output.
  4. Premi Codifica in Base64 e copia o scarica il risultato.

Standard Base64 supportati

  • Standard (RFC 4648): alfabeto A–Z a–z 0–9 + / con padding =.
  • MIME (RFC 2045): stesso alfabeto, righe interrotte a 76 caratteri con CRLF.
  • PEM (RFC 7468): righe interrotte a 64 caratteri, come nei certificati.
  • Base64URL (RFC 4648 §5): - e _ al posto di + e /, senza padding. Usato in JWT e negli URL.
  • IMAP (RFC 3501): + e ,, senza padding.
  • Token di nome XML (. e -) e identificatore XML (_ e :).
  • Armatura ASCII OpenPGP (RFC 4880): righe da 76 caratteri più un checksum CRC-24.

Perché il set di caratteri è importante?

Base64 codifica byte, non lettere. La stessa parola produce byte diversi in UTF-8, Windows-1252 o Shift_JIS, e quindi una stringa Base64 diversa. Usa UTF-8, a meno che il sistema di destinazione non richieda esplicitamente una codifica legacy.

When developers encode to Base64

Use this free Base64 encoder to embed images in CSS/HTML data URIs, put binary blobs in JSON APIs, build HTTP Basic Auth headers, wrap PEM certificates, or produce URL-safe tokens. Prefer Base64URL for JWTs and query strings, and MIME wrapping when a mail client expects 76-character lines.

Tutti gli encoder Base64

Tutti i decoder Base64

Domande frequenti

Come codifico una stringa in Base64?

Scegli "Testo", incolla la tua stringa e fai clic su "Codifica in Base64". L'impostazione predefinita UTF-8 corrisponde a ciò che producono JavaScript, Python, PHP e Java.

Posso codificare un file in Base64?

Sì. Scegli "File locale" e seleziona qualsiasi file: immagini, PDF, ZIP, certificati e così via. Il file viene elaborato in locale e mai caricato.

Qual è la differenza tra Base64 e Base64URL?

Base64URL sostituisce "+" con "-" e "/" con "_" e di solito omette il padding, così il risultato può essere usato in URL e nomi di file senza escape.

Is this Base64 encoder free?

Yes. Encode unlimited text and files in your browser with no sign-up. Nothing you encode is uploaded to our servers.

How do I encode for e-mail (MIME)?

Select the MIME (RFC 2045) standard so the output is wrapped at 76 characters with CRLF, which is what many mail systems expect.

Strumenti e guide correlati

Commenti (0)

Domande, idee o un bug in “Base64 Encode Online”? Lascia un commento, valuta lo strumento o rispondi agli altri.

Ancora nessun commento. Sii il primo a lasciare un feedback!

Lascia un commento

Valuta questo strumento:
Esc
↑ ↓ sposta↵ apriEsc chiudi