Base64 Encoder and Decoder Online - Free Tools
Encode a file or a piece of text as a Base64 string, or paste a string and get the original back. Every tool works inside your browser – nothing is uploaded, there is no size limit and no account to create.
Encode to Base64
- File to Base64
Encode any file to a Base64 string and data URI, with ready-to-paste snippets.
- SVG to Base64
Encode SVG as Base64 or a URL-encoded data URI and see which one is smaller.
- Text to Base64
Encode text to Base64 as you type, including accented characters and emoji.
- Base64 Encode / Decode
Encode text, images and files to Base64 and back, all on one page.
- Image to Base64
Convert JPG, PNG, WebP, GIF, SVG, BMP or AVIF to Base64 with the correct data URI prefix.
- PNG to Base64
Encode PNG icons and logos to Base64 with HTML and CSS snippets.
- JPG to Base64
Encode JPG/JPEG photos to Base64 byte for byte – the photo is never re-saved.
- PDF to Base64
Turn a PDF into a Base64 string, data URI, iframe and embed code.
- MP3 to Base64
Encode MP3, WAV, OGG, M4A or FLAC into Base64 and a working HTML audio tag.
- Video to Base64
Encode a short MP4 or WebM clip into Base64 and an HTML video tag.
- Font to Base64
Embed a WOFF2, WOFF, TTF or OTF font in CSS with a ready @font-face rule.
Decode & check Base64
- Base64 to Text
Decode Base64 to text as you type. Fixes data URIs, line breaks, URL-safe strings and missing padding.
- Base64 to Image
See the image inside a Base64 string, find out its format and download it.
- Base64 Validator
Find out why a string won't decode, what file it holds, and get a repaired copy.
- Base64 to PDF
Turn a Base64 string back into a PDF, preview it, then download.
- Base64 to File
Decode Base64 to any file – the type is detected and the right extension is used.