Skip to content
Developer Tools

Base64 Encoder & Decoder

Encode UTF-8 text to Base64 or decode validated Base64 text locally in your browser.

Loading this local tool…

Data handling

Storage and export controls

Retention
The tool's working state is kept only while this page is open. Inputs and results are not saved to persistent storage by Got A Tool.
Export
The tool may prepare a result after you run it. It downloads or copies it only when you choose that action.

Advertising and analytics are separate site services. We do not send selected tool input to them. Read the Privacy Policy for details.

How it works

Encode readable text without mistaking Base64 for encryption

Use this tool when the next system expects standard or URL-safe Base64 text. It validates the selected variant and treats decoded output as UTF-8 text rather than silently displaying arbitrary bytes.

  1. Step 01

    Choose a direction

    Start with UTF-8 text to encode, or paste Base64 text to decode.

  2. Step 02

    Choose the Base64 variant

    Use standard Base64 for ordinary data or URL-safe Base64 when the receiving format requires - and _ characters.

  3. Step 03

    Validate and copy

    Review the result or the validation message before copying it into the next workflow.

What this tool does and its limits

  • Base64 is an encoding, not encryption. Anyone with the encoded text can normally decode it.
  • This text tool rejects decoded bytes that are not valid UTF-8. Use a file-aware workflow for binary data rather than treating arbitrary bytes as text.

Strict and private

Unicode-safe conversion without a server round trip.

Text is converted to UTF-8 bytes before encoding. Decoding validates the selected alphabet, padding, and UTF-8 output instead of silently replacing invalid data.

Unicode support

Encode and decode international characters and emoji using UTF-8.

Strict validation

Malformed alphabets, lengths, padding, and non-canonical padding bits produce clear errors.

URL-safe variant

Choose the dash and underscore alphabet, with optional padding when encoding.

Local processing

Your input and output stay in the browser and are not uploaded for conversion.

FAQ

Common questions

Is Base64 encryption?

No. Base64 is a reversible encoding used to represent bytes as text. Anyone who has the encoded value can decode it, so do not treat it as protection for secrets.

What is the difference between standard and URL-safe Base64?

Standard Base64 uses plus and slash characters. URL-safe Base64 replaces them with dash and underscore so the value is easier to place in URLs and filename-safe contexts.

Is the equals-sign padding required?

Standard Base64 commonly includes equals-sign padding. URL-safe applications often omit it. The encoder lets you choose, and the decoder accepts correctly padded or unpadded input for the selected alphabet.

Can I encode a file with this tool?

This version is designed for UTF-8 text, not arbitrary binary files. A future file-focused tool would need separate size limits and download behavior.

Is my text uploaded or saved?

No. Encoding, validation, and decoding run locally in your browser. Got A Tool does not receive or store the text.

Keep working