Public API

SVG Tiny P/S Validation API

Free, unauthenticated REST endpoint for validating SVG files against the W3C SVG Tiny Portable/Secure profile required for BIMI email authentication. No API key. No rate limits for reasonable use.


Endpoint

GET https://makebimi.com/api/validate
ParameterTypeDescription
url required string Publicly accessible HTTPS URL of the SVG file to validate

Machine-readable contract: OpenAPI 3.1 definition.

Example request

GET https://makebimi.com/api/validate?url=https://yourdomain.com/bimi-logo.svg

Example response

// Non-compliant SVG — missing required attributes { "valid": false, "url": "https://yourdomain.com/logo.svg", "file_size_bytes": 8432, "file_size_kb": "8.2", "errors": [ "Missing version=\"1.2\" on root <svg> element", "Missing baseProfile=\"tiny-ps\" on root <svg> element" ], "warnings": [], "checks": { "fetchable": true, "is_xml": true, "svg_root": true, "namespace_correct": true, "version_1_2": false, "base_profile_tiny_ps": false, "has_viewbox": true, "viewbox_square": true, "has_title": true, "no_scripts": true, "no_external_refs": true, "no_image_elements": true, "no_embedded_bitmaps": true, "no_animations": true, "no_foreign_object": true, "file_size_ok": true }, "meta": { "viewbox": "0 0 100 100", "dimensions": "100x100" }, "spec": "https://bimigroup.org/resources/RFC_SVG_PS.txt", "tool": "makeBIMI.com — Free BIMI SVG Tiny P/S Validator" }

Validation checks

fetchable

URL is publicly accessible over HTTPS

is_xml

Content parses as valid XML

svg_root

Root element is <svg>

namespace_correct

xmlns="http://www.w3.org/2000/svg"

version_1_2

version="1.2" declared on root element

base_profile_tiny_ps

baseProfile="tiny-ps" declared

has_viewbox

viewBox attribute present

viewbox_square

viewBox has 1:1 aspect ratio

has_title

<title> element present (recommended)

no_scripts

No <script> elements

no_external_refs

No href/xlink:href to external URLs

no_image_elements

No <image> elements (pure vector)

no_embedded_bitmaps

No data:image/... base64 content

no_animations

No animate/animateTransform/set elements

no_foreign_object

No <foreignObject> elements

file_size_ok

File size ≤ 32KB (recommended < 20KB)

Try it


Specification

Validation is performed against the W3C SVG Tiny Portable/Secure profile (RFC 9345) as published by the AuthIndicators Working Group. This is the same specification used by Gmail, Apple Mail, Yahoo Mail, and Fastmail for BIMI logo validation.

Convert non-compliant SVGs

If your SVG fails validation, makeBIMI.com converts any PNG, JPG, SVG, or WEBP to a compliant SVG Tiny P/S file — free, no account required.