Base64 Encode / Decode

Encode and decode Base64 with full UTF-8 support.

100% in your browser — nothing uploaded

Encode or decode Base64 online

About this Base64 encoder and decoder

Base64 turns any data into plain ASCII text, which is why it shows up everywhere: JWTs, data URLs, email attachments, basic auth headers, and API payloads. This tool encodes and decodes both directions with proper UTF-8 handling, so accented characters and emoji survive the round trip.

It also supports URL-safe Base64 (the variant using - and _ instead of + and /), which is what JWTs and many APIs use. Decoding a JWT segment? Paste it directly.

FAQ

Why do accents break in other Base64 tools?

Many tools use the browser’s legacy btoa/atob functions, which only handle Latin-1. This tool encodes through UTF-8 bytes first, so any character works.

What is URL-safe Base64?

A variant that replaces + with - and / with _ so the result can be used in URLs and filenames without escaping. Enable the toggle to use it.

Is Base64 encryption?

No. It’s an encoding, not encryption — anyone can decode it. Never use it to protect secrets.

Related tools