Encode text or files to Base64, or decode Base64 strings back to text. Supports text, images, and any file — fully client-side.
Click to select a file (any type)
Base64 is an encoding scheme that converts binary data (bytes) into ASCII text characters. It's used to safely transmit binary data through systems that only handle text — like embedding images in CSS/HTML, passing binary data in JSON APIs, or email attachments.
background: url("data:image/png;base64,...") — embed small icons without HTTP requestsAuthorization: Basic base64(username:password)Base64 is encoding, not encryption. Anyone can decode it instantly. Never use Base64 as a security mechanism — it provides zero protection against someone reading the data. It only ensures the binary data survives transmission through text-only channels.
Base64 encoding increases data size by approximately 33%. A 100KB image becomes ~133KB as Base64. This is why you should only inline images as Base64 if they're tiny (under 5KB) — for larger images, an external URL with HTTP caching is much more efficient.