SVG Tiny-PS · size · square · DNS record

BIMI SVG Logo Checker

Check a logo against the SVG Tiny Portable/Secure shape BIMI asks for, rebuild it from an allowlist, and write the DNS TXT record.

Logo SVG

An SVG file or pasted markup

Drop an SVG here or click to choose

Up to 1 MB is read; BIMI itself allows 32 KB.

Rebuild safely

Keeps only allowlisted elements and attributes

Checks

Open or paste an SVG to see the checks.

This is a pre-flight against the published BIMI guidance, not a provider verdict. Gmail needs a VMC or CMC certificate before it shows the logo, and whether another mail app asks for one has varied, so check the provider's current rules. A certificate cannot be verified here.

BIMI DNS record

Publish as a TXT record at your DNS host

BIMI is only read from domains whose DMARC policy is enforcing (p=quarantine or p=reject); this page does not look up DNS.

BIMI SVG Logo Checker and Fixer

Operator: Abdulla Al Fahad. How tools are built and checked

A BIMI logo is rejected for reasons that are invisible when you open the file: an x attribute left on the root by a design tool, a CSS class where an attribute is expected, a missing title, or an artboard that is 240 by 120 instead of square. Mail providers that read the record fetch the file, run their own check, and quietly show no logo when it fails.

Key features

  • Checks the root for version="1.2", baseProfile="tiny-ps", no x or y attribute, and a usable square viewBox
  • Finds scripts, event-handler attributes, animation, raster images and data-URI bitmaps, external references, DOCTYPE and ENTITY declarations, and any element outside a fixed allowlist
  • Rebuilds the file from that allowlist: it keeps drawing elements and presentation attributes, turns simple CSS rules and style attributes into attributes, copies the stops into gradients that inherit them through xlink:href, and adds the title you type
  • Shows the logo as 24, 32, 40, 64 and 96 px circles and as rounded squares on a light and a dark background
  • Writes the TXT record for a selector and domain, splitting it into 255-byte strings when the URLs make it long

What the Tiny-PS check looks for

The BIMI Group's guidance asks for SVG Tiny Portable/Secure: a restricted SVG Tiny 1.2 profile. The root carries version="1.2" and baseProfile="tiny-ps", there is a title with the company name, nothing may link outside the file, and nothing may script or animate. The file must be square and centred, because mailbox apps crop it to a circle or a rounded square, and must stay under 32 KB.

This page turns that into an allowlist: svg, g, defs, title, desc, path, rect, circle, ellipse, line, polyline, polygon, linearGradient, radialGradient, stop, solidColor, use (local references only) and text. The BIMI Group's SVG Tiny PS schema lists text but not tspan, so tspan is reported and the rebuild merges its characters into the text. Everything else, including style blocks, clipPath, mask, filter, pattern, symbol, marker and image, is reported. The list is the checker's own reading of SVG Tiny 1.2 plus the published guidance; a mail provider's validator is the final word and some of them differ at the edges.

A namespace prefix is resolved before an element is judged, so <svg:script> and an element with another prefix bound to the SVG namespace are still recognised as scripts. Character references such as &#106;avascript: are decoded before a URL is tested. A file over 1 MB is not read at all, and a document with more than 20,000 elements is refused instead of half-scanned.

How it works

The check reads the raw text first for DOCTYPE and ENTITY, then parses the markup into a tree and walks every element once, collecting findings with a severity, the exact fix and whether the rebuild handles it. The rebuild builds a new tree rather than editing the old one: allowed elements keep only allowed attributes, url() values must be #fragments, and the root is written fresh with the xmlns, version, baseProfile, viewBox and a square size. Path data is rounded to two decimals, which is what shrinks an oversized file.

When to run it

  • A designer saves a wordmark from Inkscape, which leaves xmlns:inkscape and sodipodi declarations and editor metadata in the file, while an Illustrator SVG Tiny export instead leaves x="0px" y="0px" on the root. The rebuild drops both kinds, copies the stops of any gradient that inherits them through xlink:href, and adds the title.
  • A logo traced in a drawing app is 71 KB because every path has six decimals. The rebuild rounds each path to two decimals and strips whitespace, and the result is checked again against the 32 KB limit before you download it.
  • A logo kept on a transparent background shows as a faint ghost on a dark inbox theme. Adding a 240 × 240 solid rectangle behind the artwork and rebuilding gives it a background in every theme, and the preview row on the dark strip shows the difference at 24 px.

Running a check

  1. Drop the logo SVG, paste its markup, or press Load example.
  2. Read the checks, errors first. Each one names the change to make by hand and says when the rebuild covers it.
  3. Type the company name for the title if the file has none, then press Rebuild as Tiny-PS.
  4. Compare the inbox-size previews of your file and the rebuilt file, and download the fixed SVG.
  5. Enter the sending domain, the https URL where you will host the SVG and, if you have one, the certificate URL, then copy the TXT value into your DNS.

Example

Load example: a 240 × 120 logo exported with root x and y, a style block and no title

<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="240" height="120" viewBox="0 0 240 120">
  <style>.bg{fill:#0b3d91}.mark{fill:#ffc20e}</style>
  <rect class="bg" width="240" height="120"/> ...
</svg>   (437 bytes)

Checks, then the rebuilt root

Errors: version, baseProfile, root x/y, style block, no title, not square (240 × 120)
Rebuilt: <svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny-ps" viewBox="0 -60 240 240" width="240" height="240"><title>Northwind Coffee</title> ... (368 bytes)
TXT for northwind.example: default._bimi.northwind.example  v=BIMI1; l=https://northwind.example/bimi/logo.svg; a=https://northwind.example/bimi/vmc.pem;

Limits

Text is kept as text and flagged, because the SVG Tiny PS schema allows a text element but embeds no fonts. A wordmark set in a font that the recipient does not have renders in a fallback face, so convert it to outlines in your design tool.

A <use> element whose link points outside the file, or at an id that does not exist, would be left empty, so the rebuild removes it and lists the removal.

Removing an image, filter or mask can change how the logo looks, and the rebuild lists those removals with the words "appearance may change". Look at the rebuilt preview before publishing it.

A passing result here means no error was found against this checker's rules. It does not mean Gmail or any other provider will show the logo.

  • The rebuild pads a non-square artboard to a square. The padding is transparent, so give the artwork its own full-size background rectangle first, or the logo shows as a stripe on the inbox's colour.

Common errors and how to fix them

"There is no <title> as a direct child of the root"
A title nested inside a group does not count. Put <title>Company name</title> directly under <svg>.
"A reference points outside the file"
Remove the xlink:href or url(https://…) value and inline whatever it loaded. Only #id references to gradients and <use> targets inside the file are kept.

Frequently asked questions

Does this page check my domain's DNS?

No. It only writes the TXT line for one selector from the domain and URLs you type, and it never queries DNS. For the SPF, DKIM and DMARC records the BIMI line depends on, the SPF, DMARC and DKIM record builder on this site also builds and checks BIMI records.

Do I need a VMC or CMC certificate?

Gmail shows a BIMI logo only for domains with a Verified Mark Certificate or Common Mark Certificate, and both require an SVG that meets the Tiny-PS profile. Other mailbox apps have changed their rules over time, so check each provider's current documentation. This page cannot read or validate a certificate; it only writes the a= tag you give it.

Why does the DNS record end in a=; when I leave the certificate blank?

The a= tag points to the certificate's PEM file. Leaving it empty keeps the tag in place with no value, which says no certificate is offered. The record only takes effect on domains whose DMARC policy is quarantine or reject.