Skip to content
FreeToUse

Base64 Encode & Decode — Free

Encode text or files to Base64 and decode Base64 back to text. Supports UTF-8 and URL-safe Base64. Free and private.

Runs in your browser. Nothing you enter is sent anywhere.

Mode

Drop more files here or

About Base64 Encode/Decode

Base64 turns binary data into plain text so it can travel safely in emails, URLs, JSON and data URIs. Encode text or a small file, or decode a Base64 string back into readable text. Full UTF-8 support means emoji and accented characters work correctly.

How to use Base64 Encode/Decode

  1. Choose "Encode" or "Decode".
  2. Type or paste your text, or choose a file to encode.
  3. Tick "URL-safe" if the result will be used in a URL.
  4. Copy the output or download it.

Tips

  • Data URIs for small images look like data:image/png;base64,... and can be pasted straight into CSS or HTML.
  • Base64 makes data about 33% larger, so it is best for small pieces of data rather than big files.
  • JWT tokens use URL-safe Base64; you can decode their middle part here to read the claims.
  • If decoding fails, check for missing characters at the end or accidental line breaks in the string.

What Base64 is used for

Base64 represents any data with 64 plain characters, so it can pass through systems that expect text. You meet it in email attachments, data URIs that embed small images in CSS or HTML, HTTP basic authentication, API payloads and the parts of a JSON Web Token. It is not a form of protection: anybody can decode it in a second.

Encode files and decode safely

Besides text, you can encode a file of up to 20 MB and optionally get a ready-made data URI. The URL-safe option replaces the characters that cause trouble in web addresses. The decoder accepts standard and URL-safe input, data URIs, line breaks and missing padding. If the decoded data is not text, download it as a file and rename it with the right extension.