Code · Made a little simpler

Open Graph Validator

Validate Open Graph tags in local HTML. Check required fields, absolute URLs, duplicate titles, and image properties with line-numbered findings.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Open Graph Validator: how to use it

  1. Paste the HTML head or open a saved HTML document. Select Validate tags or load the night train example.
  2. Review the first value for each required field. Fix errors, then check warnings for conflicts, canonical mismatches and image fields in the wrong order.
  3. Run the check again after editing. Use Download report to keep the selected values, source line numbers and image groups with your release notes.

Limits and notes

Up to 250,000 UTF-16 code units or a 1 MiB UTF-8 HTML file. Checks Open Graph basics and common image, video and audio metadata fields from supplied HTML. Crawl access, redirects, remote image bytes and platform cache behavior require separate evidence. Custom object type schemas are outside this check.

How your privacy works →

Open Graph Validator: common questions

Which four Open Graph fields are required?

Supply og:title, og:type, og:image and og:url in the HTML head. The validator also recognizes og:image:url as an image root.

Are repeated images treated as duplicate errors?

Repeated image tags form an ordered list. Put width, height and alt after the image they describe. Repeated singleton fields such as og:title can produce a conflict warning.

Can this confirm that a crawler can open an image?

The tool checks the declared URL text. Check a published image with the relevant platform or review its captured response to confirm access and MIME type.

Guides