Base64 Encode / Decode

Encode or decode Base64 strings safely in the browser.

About this tool

Encode text to Base64 or decode Base64 back to text. Supports standard and URL-safe Base64 (RFC 4648). Typical uses: data URLs, JWT segments, basic auth experiments — without sending data to a server.

What you get

  • Standard and URL-safe Base64 output
  • Decoded plain text when decoding
  • Live conversion, byte size, and copy

How to use

Choose encode or decode and standard vs URL-safe alphabet, paste your text, and copy the result.

FAQ

How to encode text to Base64 online?

Choose Encode, paste plain text, pick standard or URL-safe alphabet, and copy the Base64 string.

How to decode Base64 to text?

Switch to Decode, paste the Base64 input, and copy the recovered plain text when the payload is valid.

What is URL-safe Base64?

URL-safe Base64 replaces + and / with - and _ and may omit padding so the string fits cleanly in URLs and JWT segments.

When is Base64 encoding used?

Common uses include data URLs, embedding small binaries in JSON, JWT header/payload segments, and basic auth header experiments.

By using this tool you agree to our Terms of Use and Privacy Policy. Results are provided as-is without warranty.