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.
How do I encode a string to Base64 on this page?
Paste the text in the Input pane and click Encode; that's the whole string to base64 online step. To encode string to base64 the tool converts your characters to UTF-8 bytes first, so a search for convert string to base64 online lands on exactly this one-click action.
Is this base64 encoder and decoder online free to use?
Yes, with no sign up and no limit. It's a base64 encoder and decoder online in one view, so you can encode text to base64 free and decode it back without switching pages. Both buttons sit above the same input.
Can it decode a base64url string, not just standard Base64?
It handles standard Base64 directly; for base64url decode, swap the URL-safe characters (- back to + and _ back to /) before you paste, then click Decode. To decode base64 string online otherwise, paste the value, press Decode, and the original text appears.
Does this do base64 url encode with URL-safe characters?
The Encode button produces standard Base64, which can include + and /. For a base64 url encode result, replace those with - and _ after encoding and drop the padding, since this page outputs the standard alphabet rather than the URL-safe variant.
Can I turn a file into Base64, like a file to base64 online tool?
Not here, because this page works with text you paste, not uploaded files. A file to base64 online converter reads binary and offers a download, which is a different tool; to base64 encode file contents you'd need one that accepts an upload. For text, config blobs, and tokens, paste them straight in.
Is there a base64 image encoder online built in for pictures?
No. Images are binary, and this tool encodes and decodes text strings, so it isn't a base64 image encoder online. It can decode the text part of a data URI, like an inline SVG, but a PNG or JPEG needs a file-based encoder instead.

More Developer tools

View all