Base64 Encoder & Decoder

Encode or decode Base64 text and files. Switch on URL-safe output for tokens or URLs, wrap long output when needed, and copy or download the result.

Input

Output

Drop file here or click to browse

Any file type supported

How to Encode or Decode Base64

  1. Choose your mode — Use Text Mode for encoding/decoding text strings, or File Mode to encode any file to Base64.
  2. Enter your data — Paste text or Base64 string in Text Mode, or drop a file in File Mode.
  3. Click Encode or Decode — Copy the result or download it as a text file.

Features

Base64 encoder and decoder for text and files

Use Base64 Encoder to encode UTF-8 text, decode Base64 back to text, or convert a file into Base64 output. Base64 changes how data is represented; it does not encrypt or protect the content.

Example workflow

For the next step, try JSON Formatter & Validator, Regex Tester & Log Extractor, Hash Generator, Unix Timestamp Converter.

Frequently Asked Questions

What is Base64 encoding? +
Base64 is an encoding scheme that represents binary data as text. It is useful for data URLs, APIs, and transport formats, but it is not encryption.
Does Base64 encrypt my data? +
No. Base64 is reversible encoding. Anyone with the encoded text can decode it, so do not use Base64 to protect secrets.
What is URL-safe Base64? +
URL-safe Base64 swaps characters that can be awkward in URLs and tokens. Use it when the encoded value needs to travel inside a URL or token-like string.
What is a data URL? +
A data URL combines a MIME type and Base64 content in a single string, such as data:image/png;base64,... for embedding small files inline.
Can large files be encoded? +
File encoding depends on available browser memory. Very large files can be slow or fail to process.