Base64 string encoder / decoder

    Encode and decode text to and from Base64, with URL-safe support.

    Loading tool…

    About the base64 string encoder / decoder

    Encodes text to Base64 and decodes it back, with a switch for the URL-safe alphabet that replaces plus and slash with hyphen and underscore. Text is treated as UTF-8, so accented characters and emoji survive the round trip intact.

    Frequently asked questions

    Is Base64 a form of encryption?

    No. It is an encoding with no key and no secret — anyone can decode it instantly. Its job is to move binary data safely through channels that only accept text.

    When do I need the URL-safe variant?

    Whenever the value goes in a URL path, query string or JWT. Standard Base64 uses plus and slash, which have their own meaning in URLs and get mangled or re-encoded in transit.

    Often used alongside