Base64 decode

Paste Base64 text and get the bytes it represents back.

Line breaks, spaces, the url-safe alphabet and a missing = at the end are all handled — pasted Base64 rarely arrives clean, and refusing it on a technicality would be unhelpful.

A leading data:image/png;base64, prefix is recognised and stripped, so you can paste a data URL straight out of a stylesheet or a developer console.

Base64 in the wild is usually a token, a key or an embedded document. That is a good reason to decode it here, in a page that only reads what you paste, rather than in a stranger’s text box.

Questions

It says the text is not valid Base64. Why?
Usually a character that was not part of the data got pasted in, or the text was cut short. Line breaks and spaces are fine and are ignored.
What will the downloaded file be called?
The input's name with the .b64 or .txt extension removed, or decoded.bin if there is nothing left.