Base64 Encoder/Decoder

Semplicemente codifica e decodifica stringhe nella loro rappresentazione base64.

String to base64

Encode URL safe

Base64 to string

Decode URL safe

Come Usare Questo Base64 Encoder/Decoder

  1. Paste or type your text into the input field.
  2. Select whether you want to encode (text to Base64) or decode (Base64 to text).
  3. The converted result appears instantly in the output field.
  4. Click the copy button to copy the result to your clipboard.

What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used to encode data that needs to be stored and transferred over media designed to handle text. This includes embedding images in HTML/CSS, encoding email attachments, and storing complex data in JSON.

URL-Safe Base64

URL-safe Base64 replaces '+' with '-' and '/' with '_' to make the encoded string safe for use in URLs without additional encoding.

Features

  • Encode plain text to Base64 format instantly
  • Decode Base64 strings back to readable text
  • Support for URL-safe Base64 encoding
  • Real-time conversion as you type
  • One-click copy to clipboard

Use Cases

  • Encoding images or files for embedding in HTML or CSS
  • Preparing data for API requests that require Base64 input
  • Decoding Base64-encoded email attachments or data URIs
  • Encoding binary data for storage in JSON or XML
  • Debugging encoded payloads in web applications

Domande Frequenti

Does Base64 encoding encrypt my data?

No. Base64 is an encoding scheme, not encryption. Anyone can decode Base64 data without a key. It is designed for data transport, not security.

Why does Base64 make data larger?

Base64 represents every 3 bytes of input as 4 ASCII characters, resulting in roughly a 33% increase in size. This trade-off allows binary data to be safely transmitted over text-based protocols.

What is URL-safe Base64?

Standard Base64 uses '+' and '/' characters, which have special meanings in URLs. URL-safe Base64 replaces these with '-' and '_' so the encoded string can be used directly in URLs and query parameters.

Strumenti Correlati