Youtilities

Base64 Encode & Decode

Encode text or files to Base64 and decode it back. Base64 to image preview, URL-safe option.

Runs in your browser. Nothing is uploaded.

Input
Output
Base64 appears here.

What this does

Encode text or any file to Base64, or decode Base64 back to text. Text is handled as UTF-8, so accents and emoji survive the round trip. Switch direction and the output becomes the new input.

Base64 to image and files

Paste a Base64 string or a data: URL of an image and you get a preview and a download. PNG, JPEG, GIF, WebP, SVG, PDF, and ZIP are recognised from their first bytes; anything else downloads as a file.

URL-safe and padding

URL-safe Base64 swaps + and / for - and _, as used in JWTs and web tokens. Padding adds = at the end to a multiple of four characters; some systems leave it out. Decoding accepts both forms.

All