Free tool · runs in your browser

Base64 Encode and Decode

Base64 shows up in email attachments, data URLs and API tokens – and in almost every hacked WordPress file: malicious code likes to hide behind eval(base64_decode(…)). With this tool you encode text or make such strings readable without anything being executed.

Base64 tool

Encode or decode Base64

Enter text, pick a direction, copy the result. When decoding, you can also paste a whole PHP line containing base64_decode(…).

Direction
# Enter text above …

Your input never leaves the browser. Decoded code is only shown as text, never executed.

Everything is generated locally in your browser. Nothing you enter is transmitted to our server.

How it works

  1. 1 Pick a direction: encode or decode
  2. 2 Paste text or a whole PHP line with base64_decode(…)
  3. 3 Copy the result – or decode again if the code is wrapped several times

Guides for this tool

More tools