BrokenTools
EN

Base64 encoder and decoder

Turn text or a file into Base64, or decode Base64 back into text or a file.

    How to use it

    1. Type or paste your text, or add a file.
    2. Choose Encode or Decode.
    3. Press Convert and copy or download the result.

    What Base64 is

    Base64 writes any data using only letters, numbers and a few symbols, so it can pass through systems made for plain text, such as emails and web addresses. It is encoding, not encryption, so it does not hide anything.

    Text and files

    Encode text or a file into Base64, or decode Base64 back into text or a file. It is used for small images in web pages, data in APIs and attachments in emails.

    Good to know

    Base64 makes data about one third larger. Do not use it to protect secrets. Everything is done in your browser.

    Example: put a small image inside a web page

    You have a tiny icon and you want it inside your CSS without another file. Add the file and copy the Base64 text, then use it in a data: address. The decoder works the other way: paste a long Base64 string and get the text or the file back.

    Quick tips

    Common problems and fixes

    Questions

    Does it work with Greek text?

    Yes. Text is handled as UTF-8, so Greek letters and emoji are encoded correctly.

    What if the decoded data is not text?

    Then you get a file to download, for example an image.

    What is URL-safe Base64?

    A variant that uses - and _ instead of + and /, so it can be placed in a web address.