My Tool Studio
Developer

Base64 Encoder / Decoder

When a webhook payload lands in your logs as an unreadable string of letters and slashes, base64 decode is the first thing to try. This tool pairs base64 encode and decode in two panes: paste on the left, click a button, copy the result on the right. It's the quick route to convert to base64 online when you're building a Basic auth header by hand, and the reverse trip works as a base64 converter for tokens, data URIs, and config blobs. Everything runs in your browser, so the credentials you're inspecting never reach a server, and the UTF-8 handling means accented text and emoji come back intact.

Always freeNo sign upRuns in your browser

How to use

01

Paste your string

Drop plain text or an encoded value into the Input pane. If you just want to see how the tool behaves, the Try sample button loads a short example.

02

Pick Encode or Decode

Click Encode to turn text to base64, or Decode to translate an encoded string back. Invalid input shows a clear error instead of garbage output.

03

Copy the result

A Copy button appears next to the Output pane once there's something to grab, and a character count below tells you how long the result is.

Why Base64 Encoder / Decoder

Common questions

Is Base64 a form of encryption?
No, and that matters for security. Searches for base64 decrypt are really asking about decoding, because Base64 is a reversible transport encoding with no key involved. Anyone can decode 64-character tokens or anything else encoded this way, so never treat it as protection for secrets.
How do I get readable text back from a Base64 string?
Paste the encoded value and press Decode. That's the whole base64 to text step: the tool trims stray whitespace, converts the string, and shows the original in the Output pane. If the input isn't valid, you'll see a Not valid Base64 error rather than a mangled result.
Why do Authorization headers use Base64?
Basic auth joins a username and password with a colon, then encodes the pair so it travels safely inside an ASCII header. Type user:pass here and click Encode, and you have the header value ready. Since it runs as a base64 encode online step in your browser, the credentials stay on your machine.
Can this decode the Base64 part of a data URI?
Yes, for text-based content like SVG or JSON. Remove the prefix up to and including the comma, then paste the remainder and decode. Binary formats like PNG won't show as readable text here, since this page works with strings rather than files.
Does it matter that some people write base 64 encode online with a space?
Not at all, the spacing is just a search habit and both point to the same operation. Whatever you type into a search box, the encoding itself follows RFC 4648: three bytes of input become four characters of output, with = signs padding the end.
Will emoji survive a Base64 round trip?
Yes. The tool converts your text to UTF-8 bytes before encoding, so Japanese, Arabic, or emoji characters decode back exactly as entered. Plenty of quick scripts call btoa directly and corrupt anything outside Latin-1, which is the bug this page avoids.
Can one page really work as an encoder and decoder online?
That's the point of the two buttons. You get encode decode online in a single view, so checking a value in both directions takes seconds. Run base64 decode online on a token, tweak the text, then re-encode it without switching tabs.

More Developer tools

View all