AMP check

AMP HTML Validator Lite

Catch the AMP errors that break validation most often. Paste your AMP page source to check required markup, CSS limits, disallowed tags and missing extension scripts.

    This lite validator covers the most common rules only. Use the official AMP validator before publishing.

    Runs entirely in your browser. Nothing is uploaded to any server.

    Why check AMP markup

    Invalid AMP is ignored

    Search engines and platforms skip invalid AMP pages and fall back to your regular page.

    Strict rules

    AMP forbids custom JavaScript, limits CSS and requires exact boilerplate, so small slips are common.

    Fast feedback

    Paste the source and see problems in a second, without deploying anything.

    How to use the AMP validator lite

    1. Paste the sourceCopy your AMP page's HTML source and paste it in.
    2. Run the checkClick Check AMP page to run every rule.
    3. Fix the errorsWork through the errors first, then the warnings, and re-check.

    What the lite validator covers

    The checker parses your HTML without running it and verifies the AMP document requirements: the doctype, the amp attribute on the html tag, explicit head and body, a UTF-8 charset meta tag first in head, a viewport tag, the async runtime script, a canonical link and both boilerplate style blocks.

    It then looks for the problems that most often fail validation: custom or inline JavaScript, inline event handlers, external stylesheets, more than one custom style tag, CSS over 75,000 bytes or using !important, regular img, video, audio and iframe tags, disallowed elements and inputs, AMP components without their extension script, and media components missing width and height.

    Required markup

    Doctype, amp attribute, charset, viewport, runtime, canonical and boilerplate.

    Forbidden content

    Custom scripts, event handlers, plain media tags and unsupported elements.

    Components

    Every amp-* component used must load its matching extension script.

    AMP validator lite FAQ

    Does passing this check mean my page is valid AMP?

    Not necessarily. This tool covers the most common rules; the official AMP validator checks hundreds of attribute and value rules. Use both.

    Is <img> allowed in AMP?

    Only inside <noscript>. Elsewhere use <amp-img> with width and height.

    Can I use my own JavaScript?

    Not directly. Use AMP components, or amp-script for limited custom logic in a sandbox.

    Why is my stylesheet link an error?

    AMP only allows external stylesheets from approved font providers. Put your CSS in a single <style amp-custom> tag.

    Is my HTML uploaded?

    No. It is parsed in your browser with DOMParser and never executed.

    Try other SEO tools

    More free tools from My Panda Toolbox.