HomeDeveloper ToolsBase64 Encode/Decode

encode. decode. instant.

encode text or files to Base64, or decode Base64 back to text and files. runs entirely in your browser.

text / file
base64 output

encoded output will appear here

free use available

What is Base64 Encode/Decode?

Base64 Encoder and Decoder converts text and files to Base64 encoding, and decodes Base64 strings back to their original form. This is essential for embedding data in HTML, CSS, JSON, and APIs that require text-safe binary encoding.

Paste text to encode it as Base64, or paste a Base64 string to decode it back to readable text. The tool also supports file encoding — upload any file and get its Base64 representation for embedding in web pages or data URIs.

Everything runs in your browser. No data is transmitted to any server, making this safe for encoding sensitive content like tokens, credentials, or private files.

How to Use Base64 Encode/Decode

  1. 1

    Choose mode

    Select Encode to convert text or files to Base64, or Decode to convert Base64 back to text.

  2. 2

    Paste or upload

    Paste text directly, or upload a file to encode it.

  3. 3

    See the result

    The encoded or decoded output appears instantly.

  4. 4

    Copy or download

    Copy the result to your clipboard or download it as a file.

Common Use Cases

Embedding images in CSS

Encode small images as Base64 data URIs to inline them directly in CSS, eliminating an extra HTTP request.

API authentication

Encode credentials for HTTP Basic Authentication headers.

Email encoding

Encode file attachments for email APIs that require Base64-encoded content.

Data URIs

Convert files to Base64 data URIs for embedding in HTML without external file references.

Debugging

Decode Base64-encoded tokens, cookies, or API payloads to inspect their contents.

Frequently Asked Questions

more free tools

PDF utilities, image tools, developer helpers — all free, no signup.

Something wrong?