File → Base64/Data URL, and Base64 → File, both entirely in your browser — nothing is uploaded to run either conversion. Any file type works, not just images.
Also doubles as a File → Data URL tool for developers: the Data URL below is the exact string browsers accept anywhere a URL is expected — <img src>, CSS background-image, a JS variable — so a small file can ship inline with your HTML/CSS instead of as a separate file request. Ready-made snippets are below the output.
Drag & drop a file here, or
FileReader.readAsDataURL() — the file never leaves your browser to be converted. Works with any file type; an image preview shows up automatically when the file happens to be one.data:...;base64, prefix, the type is guessed from the decoded bytes' first few bytes (images, PDF, ZIP, GZIP) or you can set an output filename yourself to control the extension.background-image snippet only makes sense for images, so it's skipped for other file types.Want an AI agent (Claude Code, claude.ai, or anything else that supports the Agent Skills format) to use this tool for you on request? Download the skill below and add it:
~/.claude/skills/base64-converter/SKILL.md