Decode a data: URI to see its MIME type and content, or encode an uploaded file into a base64 data: URI.
Data URI Tool provides dual-mode processing for RFC 2397 data: URIs. In Decode mode, it parses MIME types and extracts payload content, rendering live visual previews for images (PNG, SVG, JPEG, WebP) and plain text for markup and code. In Encode mode, it converts local files up to 5MB into Base64 data URIs ready for embedding directly into HTML, CSS, or JSON.
Easily switch between parsing existing data URIs and generating new data URIs from local files.
Automatically detects image MIME types and renders an inline visual preview of decoded images.
Accurately decodes both base64-encoded payloads and percent-encoded text data URIs.
Encodes images, SVGs, and documents up to 5MB into data URIs without uploading files anywhere.
Extracts markup from a plain or percent-encoded SVG data URI
data:image/svg+xml,<svg><circle r="10"/></svg>
<svg><circle r="10"/></svg>
Extracts decoded plain text from a Base64 data URI
data:text/plain;base64,SGVsbG8gV29ybGQ=
Hello World
Encode text into Base64.
Decode Base64-encoded strings back to plain text and UTF-8.
Encode special characters to HTML entities or decode entities to text.
Convert images between JPG, PNG, and WebP formats.
Percent-encode text and parameters for safe use in URLs and APIs.