Image and Base64 Converter
Bidirectional raster conversion and a restricted static SVG subset, previewed only as a Blob image. No canvas conversion or metadata rewriting; original bytes are preserved.
Bidirectional raster conversion and a restricted static SVG subset, previewed only as a Blob image. No canvas conversion or metadata rewriting; original bytes are preserved.
File/decoded bytes ≤10 MiB; data URL/text output ≤15,728,640 UTF-16 code units. PNG/JPEG/WebP/GIF signatures and AVIF ftyp brands identify a likely format, not complete image validity or browser support. Pixel decoding may use more memory than the byte limit.
SVG in either direction: UTF-8 ≤1 MiB, ≤5,000 nodes, depth ≤100, SVG namespace/root, basic shapes/groups/text only. No DTD, entities, processing instructions, scripts, foreignObject, animation, style, href, url() or external references. All references, including local fragments, are rejected. This rejects unsupported SVG; it is not a sanitizer. Accepted original bytes are previewed in an img Blob image context and downloaded unchanged.
Choose a file or paste Base64.
Above 10,240 UTF-16 code units: embedding can enlarge pages and prevent separate image caching. Prefer a normal image resource when appropriate.
Image preview
All processing stays in this page. Nothing is uploaded or stored. Snippets are text only and are never inserted as HTML or CSS here.
A QUICK WALKTHROUGH
How to use this tool
- Choose an image to encode, or paste a canonical supported-image Base64 body/data URL to decode.
- Review detected MIME, byte size, encoding overhead and the preview or SVG source.
- Choose data URL, raw Base64, CSS, HTML or JSON; copy or download the text or original image bytes.
Text output format
File/decoded bytes ≤10 MiB; data URL/text output ≤15,728,640 UTF-16 code units. PNG/JPEG/WebP/GIF signatures and AVIF ftyp brands identify a likely format, not complete image validity or browser support. Pixel decoding may use more memory than the byte limit.
SVG text source (not a rendered preview)
Bidirectional raster conversion and a restricted static SVG subset, previewed only as a Blob image. No canvas conversion or metadata rewriting; original bytes are preserved. SVG in either direction: UTF-8 ≤1 MiB, ≤5,000 nodes, depth ≤100, SVG namespace/root, basic shapes/groups/text only. No DTD, entities, processing instructions, scripts, foreignObject, animation, style, href, url() or external references. All references, including local fragments, are rejected. This rejects unsupported SVG; it is not a sanitizer. Accepted original bytes are previewed in an img Blob image context and downloaded unchanged.
Encoded text
All processing stays in this page. Nothing is uploaded or stored. Snippets are text only and are never inserted as HTML or CSS here.
GOOD TO KNOW
Common questions
Does a signature match prove the image is valid?
No. It only checks identifying bytes and MIME consistency. Browser display support and full format validity are separate. Static SVG must satisfy this tool’s restricted subset.