Base64 Encoder & Decoder
Encode or decode text and files as Base64.
33 %. Ideal for email attachments, data URIs, or embedding images in CSS/HTML.
Good to know
Is Base64 a form of encryption?
No. Base64 is an encoding, not encryption. Anyone can decode Base64 strings without a key. It exists to transport binary data as text — not for protection.
When do I need URL-safe Base64?
Standard Base64 contains + and / characters that cause issues in URLs. URL-safe Base64 replaces them with - and _ and omits padding. It is used, for example, in JWT tokens.
What is Base64 and how does it work?
Base64 encodes any binary data into a string of 64 printable ASCII characters (A–Z, a–z, 0–9, +, /). Every three bytes of input are converted into four Base64 characters — making the encoded output about one third longer than the original.
Is my data sent to a server when encoding?
No. The inputfix Base64 encoder runs entirely in your browser. Text and files never leave your computer — neither during encoding nor decoding.
Can I encode image files in Base64?
Yes. Using the File tab you can select images (JPEG, PNG, GIF, WebP) and other binary files. The result is a complete Data URL string you can use directly in HTML src attributes or CSS.