Sviluppo

Codificatore e decodificatore Base64

Codifica testo o file e decodifica Base64.

Codificatore e decodificatore Base64

Offerto da UtilBrix

Base64 is an encoding, not encryption. Anyone can decode Base64 content.

I dati restano nel browser. Non serve un account.

I metodi dettagliati e gli esempi sono disponibili in inglese.

Step-by-step instructions (English)

  1. Choose Text to Base64, Base64 to Text, or File to Base64.
  2. Paste text for text conversion, or select the source file for file encoding.
  3. Run the conversion and copy or download the output as offered.

Formula e metodo

Text is converted to UTF-8 bytes before Base64 encoding. Decoding reverses Base64 to bytes and checks that they form valid UTF-8 text. File encoding returns the raw Base64 representation of its bytes. Base64 does not protect confidentiality.

Esempio pratico

The text Hello encodes as SGVsbG8=. Indian-language text and emoji are supported through UTF-8 encoding.

When this tool is useful

Prepare small encoded payloads or inspect a Base64 string returned by an API. The text modes use UTF-8 so characters outside the basic Latin alphabet can be encoded without treating them as single-byte text.

Common mistakes and limitations

  • Base64 is reversible encoding and provides no encryption.
  • Raw Base64 and a data URL are different: a data URL adds a MIME-type prefix that a raw Base64 consumer may not accept.

Practical questions about this tool (English)

Why does decoded binary data fail the text check?

Not every byte sequence is valid UTF-8 text. An encoded image or archive should be handled as binary by the receiving application rather than interpreted as a readable string.

Does Base64 reduce file size?

No. Encoding maps each three bytes to four Base64 characters, with padding where needed. It generally increases the size before any separate transport compression.

Altri strumenti utili

Installa UtilBrix

Accedi agli strumenti dalla schermata Home.

  1. Apri il menu del browser (⋮).
  2. Scegli «Installa app» o «Aggiungi a schermata Home».
  3. Conferma per aggiungere UtilBrix alla schermata Home.

Se l’opzione manca, apri la pagina in Chrome su Android.

Cerca strumenti

↑ ↓ Navigate · Enter Open · Esc Close