OKFree Tools
Developer

Base64 Encoder & Decoder

Convert text to and from Base64, including UTF-8 and the URL-safe variant, and turn images into Base64 and back

Runs locally in your browser. Nothing is uploaded.

Text to encode

Result

Type text on the left to see its Base64 here

How to use

  1. 1
    Pick a type and direction

    Choose Text or Image at the top, then encode or decode.

  2. 2
    Enter your input

    Type text, paste Base64 or drop an image. The result updates as you go, and any format error points to the exact character.

  3. 3
    Copy or download

    Click Copy above the result. Images restored from Base64 can be downloaded directly.

Tips

  • Base64 isn’t encryption

    Anyone can decode it back, so never use it to hide passwords or keys.

  • About a third bigger

    Every 3 bytes become 4 characters. Inlining icons of a few KB in HTML or CSS is fine; larger images load faster as normal files.

  • When to use URL-safe

    Use the URL-safe variant in query strings, file names and JWTs so + / = aren’t mistaken for special characters. Both variants can be pasted straight into the decoder.