Input
Mode
Encode text or a file → data URI
Decode a data URI
File (optional)
Read locally. A chosen file overrides the text box.
Or text
Media type
Filled from the file when you pick one. Leave empty to omit it (RFC 2397 then assumes text/plain;charset=US-ASCII).
Encoding
Base64 (about 33% larger)
Percent-encoded (best for short text and SVG)
Data URI
Run
Reset
Result
Choose a file or enter text, then press Run.