Codificador/Decodificador Base64

Codifica texto a Base64 o decodifica Base64 a texto al instante.

How to Use the Base64 Encoder/Decoder

  1. Enter your input — Paste plain text to encode, or paste a Base64 string to decode.
  2. Click Encode or Decode — Choose Encode to convert text to Base64, or Decode to convert Base64 back to readable text.
  3. View the result — The converted output appears instantly in the result area below.
  4. Copy the output — Click the Copy button to place the result on your clipboard.
  5. Clear and repeat — Use the Clear button to reset both fields and process new input.

About Base64 Encoder/Decoder

Base64 is a binary-to-text encoding scheme that converts binary data into a string of 64 printable ASCII characters. It is one of the most widely used encoding methods in web development, email systems, and data transfer protocols. This tool lets you encode and decode Base64 strings instantly, right in your browser.

Developers commonly use Base64 encoding to embed images directly in HTML or CSS (data URIs), transmit binary files through JSON APIs, handle email attachments via MIME encoding, and encode authentication credentials for HTTP Basic Auth headers. Understanding Base64 is essential for working with web APIs and data interchange.

This tool supports UTF-8 text encoding, handles special characters and Unicode correctly, and processes everything locally in your browser. No data is ever sent to a server, making it safe for encoding sensitive strings like API keys or tokens during development and debugging.

Frequently Asked Questions

What is Base64 encoding?

Base64 is a binary-to-text encoding scheme that represents binary data using 64 printable ASCII characters (A-Z, a-z, 0-9, +, /). It is commonly used to embed binary data like images in HTML/CSS, transmit data in email (MIME), and encode credentials in HTTP Basic Authentication.

Why would I need to encode text to Base64?

Base64 encoding is needed when you want to transmit binary or special-character data through channels that only support plain text, such as email, JSON payloads, URL parameters, or XML documents. It ensures data integrity during transmission without corruption.

Is Base64 encoding the same as encryption?

No. Base64 is an encoding scheme, not encryption. Anyone can decode Base64 text back to the original data without a key. It provides no security or confidentiality. If you need to protect data, use actual encryption (like AES) before optionally encoding the result in Base64.

Does Base64 encoding increase file size?

Yes. Base64 encoding increases data size by approximately 33%. Three bytes of input become four Base64 characters. This overhead is the tradeoff for being able to represent binary data as safe, printable ASCII text.

Can I decode Base64 images with this tool?

This tool decodes Base64 to text. For Base64-encoded images, decoding will produce the raw binary data represented as text, which is not directly viewable. To view a Base64 image, use a data URI in your browser (e.g., data:image/png;base64,...).