Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 to text online. Supports UTF-8, URL-safe input and binary downloads, with adjustable padding and line breaks.

0 characters
Result

Your result will appear here.

How to encode or decode Base64

  1. Choose Encode for plain text or Decode for a Base64 string.
  2. Paste your input, then adjust padding and line wrapping if needed.
  3. Copy the result or download the decoded bytes. Use the image or file tools below for those workflows.

Working with Base64 Encoder & Decoder

Base64 represents bytes as text; it is not encryption. This decoder accepts missing padding and MIME line breaks, but rejects invalid characters and nonzero padding bits. Binary results can be downloaded without changing their bytes.

Base64 encoding example

Input
Hello, world! ๐Ÿ‘‹
Result
SGVsbG8sIHdvcmxkISDwn5GL

Questions about Base64 Encoder & Decoder

Is Base64 encryption?

No. Base64 changes how bytes are represented, not who can read them. Anyone can decode it without a secret key; it does not protect passwords or private information.

Why is my Base64 string rejected?

Check for copied punctuation, truncated data or an incorrect character. Missing = padding and MIME line breaks are accepted, but invalid characters and inconsistent padding are not.

Can I convert images or files with Base64?

Yes. Use Image to Base64 for an image or Data URI, File to Base64 for other files, and the reverse tools to recover the original bytes. Encoding makes the data roughly one third larger.

Why does decoded Base64 not look like readable text?

The result may be an image, a document or text in another character encoding. This tool displays valid UTF-8 as text and otherwise shows a hexadecimal preview; downloading preserves the decoded bytes.

Are my files, tokens or text uploaded?

No. These tools process your input in your browser. The website serves the page and its code, but your input is not sent to a conversion server or saved in an account.

  • Base64URL Encoder & Decoder

    Convert text to URL-safe Base64 with the - and _ alphabet. Encode or decode unpadded Base64URL strings.

  • File to Base64

    Encode any file to a Base64 string, with optional Data URI prefix, padding and MIME line wrapping.

  • Base64 to File

    Turn Base64 strings and Data URIs back into downloadable files without changing the decoded binary data.

  • Unicode Inspector & Escape Converter

    Inspect Unicode code points, UTF-8 bytes and UTF-16 units, or convert JavaScript Unicode escapes to readable text.

Common tasks and examples

  • Base64 Decoder

    Decode Base64 to readable UTF-8 text, or download the original bytes.

Explore all developer tools

Encoding & Files

Move between text, bytes, URLs and embedded images without changing your original data.

Data & Text Inspection

Read structured data, inspect tokens and understand exactly what changed.

Hashes, IDs & Schedules

Check file integrity, generate identifiers and make sense of times and recurring schedules.

Your input and files are processed on your device. Keep sensitive results out of shared clipboards and use a trusted device for private keys and tokens.