Base64 Image
Validate base64 image data URIs and read image metadata.
Validate base64 image data URIs and read image metadata. Enter your numbers and get an instant result.
Paste a Base64 image data URI, choose info or validate, and the page reports the image's metadata or whether the string parses — media type, format and size without ever rendering the picture.
This page executes on the tool server: the data URI and the action are sent for that one request, the inspection runs there, and nothing is stored. A string without the data:image/ header is refused as an invalid data URI rather than decoded as a guessed format.
Info describes the image; validate judges it. Both read the same structure, so a string that fails validation fails for a named structural reason, not a silent error.
What the inspection covers
Info decodes the header and returns the media type, the image format and the size in kilobytes. Validate runs the same parse and answers whether the string is a well-formed Base64 image, which is the check to run before embedding a generated URI in a page.
Only the header and structure are read. The page reports metadata, never pixels, and a valid structure says nothing about what the picture shows.
- Info: media type, format and size
- Validate: well-formed or not, with the reason
- Full data:image/ URI required
What is sent and what is kept
The request carries the data URI and the action, and the response carries the metadata or the verdict. Neither is written to disk or logged; a second string is a second request with no memory of the first.
A bare Base64 blob with no media header is refused as an invalid data URI, and a malformed structure is refused with the reason rather than reported as an image of unknown kind.
How to use the data URI field
Paste the Base64 image data URI, choose the info or validate action, and press Execute Tool Engine. Info decodes the header and returns the media type, the image format and the size in kilobytes; validate answers whether the string is well-formed Base64 image data, the check to run before embedding a generated URI in a page.
A string without the data image header is refused as an invalid data URI, and a malformed structure is refused with the reason. Only the header and structure are read: the page reports metadata, never pixels.
What to Expect
Best for
- Checking a generated data URI before embedding it
- Reading an image's type and size from its URI
- Validating pasted image strings in a pipeline
Not ideal for
- Viewing or editing the picture itself
- Non-image Base64 such as fonts or documents
- Resizing or recompressing the image
What this tool keeps
- The same metadata for the same string
- The input untouched — only read, never altered
- Your string private beyond the single request
What may need cleanup
- Stripping whitespace a copy added around the URI
- Confirming the size fits the embedding target
- Re-encoding when the format is not the one needed
Common errors
- Pasting the blob without the data:image/ header
- Expecting a verdict about the picture's content
- Reading kilobytes as a quality score
Example use cases
- Verifying an export produced a parseable image
- Reading dimensions metadata from a pasted URI
- Gating an upload on well-formedness first
Sample input
A data:image/png;base64 URI pasted with the info action.
Sample output
The media type, format and size in kilobytes, inspected on the tool server.
Who this is for
- Developers embedding generated images
- QA checking export pipelines
- Anyone validating pasted image strings
Frequently asked questions
What shape must the input have?
A full Base64 data URI starting with data:image/. A bare Base64 blob with no media header is refused as an invalid data URI.
What is the difference between info and validate?
Info decodes the header and reports the media type, format and size; validate checks the same structure and answers whether it parses.
Is my image uploaded anywhere?
No. The string is sent for that one inspection and only its metadata comes back; the image bytes are never kept.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.