Data URI Decoder
Paste a data URI or a Base64 string to see what file it is and how big, preview an image, audio, video or text safely, then save it with the right extension.
How to decode a data URI
- Paste a data URI (starting with data:) or a Base64 string into the box. A whole CSS url(...) or img tag works too.
- The file type, size and a preview appear right below.
- Press download to save it as a file with the right extension.
Frequently asked questions
Yes. The file type is recognised from the start of the content (PNG, JPG, PDF, MP3, MP4, ZIP…). If it is not recognised, it is treated as text when readable, otherwise saved as .bin.
Yes. Images (SVG too) are only shown as pictures, audio and video use a player, and HTML or other text is only shown as text, never run as a web page.
The data URI names one type but the content is another, such as image/jpeg for what is really a PNG. The preview and the file extension follow the real content.
It has stray characters or part of it was cut off when copying. Copy the whole string again; line breaks and spaces inside it are ignored.
It is completely free and needs no sign-up.
Related tools
Data URI GeneratorTurn files and SVG into embeddable data URIsBase64 & URL Encoder / DecoderEncode and decode Base64 and URLsSlug generatorTurn titles into clean URL slugsUUID generatorGenerate random UUID identifiersColor converterConvert between HEX, RGB and HSL color codesRegex testerTest a regex: highlighted matches, groups and replaceRegex generatorReady-made regex for email, phone, dates and moreRegex explainerUnderstand every part of a regexCron expression generatorPick a schedule, get the cron expression