AMP Validator

Validate any Accelerated Mobile Pages (AMP) document in seconds.

URL + CODE VALIDATION 30+ AMP CHECKS BOILERPLATE GENERATOR 100% FREE
Free Professional Tool | No Registration Required | Updated: January 2026

Instant AMP Validation

Detect AMP errors before Google does — validate markup, boilerplate, scripts and structure.

Error Detection Fix Suggestions AMP Score

Validate an AMP Page by URL

Enter the full URL of an AMP page (usually ending in /amp or hosted on an AMP cache).

Paste AMP HTML

Your code never leaves your browser — validation runs 100% locally.

Validation Report

Paste your AMP HTML and click Validate AMP Code to see the full report.

AMP Boilerplate Generator

Comma-separated. Script tags will be generated automatically.

Generated AMP Starter

Generated AMP boilerplate will appear here

Complete AMP Validation Guide

What Is AMP and Why Validate It?

Accelerated Mobile Pages (AMP) is an open-source framework that builds fast, lightweight web pages for mobile devices. AMP HTML is a strict subset of HTML with a fixed set of rules — if a single required element is missing or a disallowed tag is used, the page loses its AMP status and can disappear from AMP-specific search features.

An AMP Validator checks your document against the official AMP HTML specification and tells you exactly what to fix before Google re-crawls your page.

What Our AMP Validator Checks

  • Document structure: HTML5 doctype, <html ⚡> / <html amp> attribute
  • Required meta tags: charset utf-8 as the first meta and the AMP viewport tag
  • AMP runtime: the mandatory v0.js script with the async attribute
  • Boilerplate CSS: the amp-boilerplate style and its noscript fallback
  • Custom CSS: a single amp-custom style block, size limit and no !important
  • Disallowed tags: <img>, <video>, <audio>, <iframe>, <object>, <embed>, <base>, <frame> and inline JavaScript
  • Inline styles & event handlers: style="" attributes and onclick-style handlers are not allowed
  • Extension scripts: every <amp-*> component you use must load its matching script
  • SEO essentials: canonical link, title tag and layout attributes on <amp-img>

Common AMP Errors and How to Fix Them

ErrorCauseFix
Missing AMP attribute<html> without ⚡ or ampUse <html ⚡> or <html amp>
Mandatory tag missingNo v0.js runtime scriptAdd <script async src="https://cdn.ampproject.org/v0.js">
Disallowed tag<img> used instead of <amp-img>Replace with <amp-img width height>
Inline stylestyle="color:red" on an elementMove rules into <style amp-custom>
Missing extension<amp-carousel> without its scriptAdd the matching v0/amp-carousel-0.2.js script

How to Use This AMP Validator

  1. Validate by URL: paste a live AMP URL and let the tool fetch and inspect the document.
  2. Validate HTML code: paste the raw AMP source for offline, private validation.
  3. Read the report: fix all errors first, then clear warnings.
  4. Re-validate: repeat until the report shows Valid AMP with a 100% score.
  5. Generate boilerplate: use the boilerplate tab to start a brand-new AMP page correctly.

Pro Tip: Always keep a canonical link pointing to the non-AMP version of the page. Google uses it to understand the relationship between your AMP and standard pages.

Frequently Asked Questions

Yes, the AMP Validator is 100% free with no registration, no usage limits and no hidden fees. You can validate unlimited AMP pages and documents.

No. Code validation runs entirely inside your browser using JavaScript — your HTML never leaves your device. URL validation only fetches the public page you request and nothing is stored.

Browsers block cross-origin requests, so the tool routes the fetch through public proxy services. If every proxy in the fallback chain fails (some sites block proxies, require authentication, or the page is offline), copy the page source and use the Validate HTML Code tab instead.

No. Passing validation means your markup follows the AMP HTML specification, which is required for AMP eligibility. Indexing also depends on content quality, crawlability, canonical tags and Google's own ranking systems.

The AMP boilerplate is a small block of CSS that hides page content until the AMP runtime loads, preventing a flash of unstyled content. It is mandatory in every AMP document and must appear as <style amp-boilerplate> together with a matching <noscript> fallback.

Ready to Validate Your AMP Pages?

Use the validator above to check any AMP document in seconds. Fix the errors, clear the warnings, and publish with confidence.

Updated: January 2026 | Free for Commercial Use | 100% Secure Processing

Why Choose Our AMP Validator?

Instant Results

Validate an entire AMP document in milliseconds with a detailed, itemised report.

30+ AMP Checks

Doctype, boilerplate, runtime scripts, disallowed tags, inline styles and more.

Privacy Focused

Code validation runs locally in your browser. Nothing is uploaded or stored.

Actionable Fixes

Every error includes a clear explanation and the exact code you should use instead.

More SEO Tools

', '' ].join('\n'); $('validate-code-btn').addEventListener('click', function () { const code = $('amp-code').value; const container = $('code-results'); if (!code.trim()) { alert('Please paste some AMP HTML code first.'); return; } const result = validateAMP(code); renderResults(container, result, 'Pasted HTML source · ' + result.stats.nodes + ' elements · ' + result.stats.bytes.toLocaleString() + ' bytes'); container.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); }); $('load-sample-code').addEventListener('click', function () { $('amp-code').value = SAMPLE_AMP; }); $('clear-code-btn').addEventListener('click', function () { $('amp-code').value = ''; $('code-results').innerHTML = `

Paste your AMP HTML and click Validate AMP Code to see the full report.

`; }); /* ===================================================================== BOILERPLATE GENERATOR ===================================================================== */ const BOILERPLATE_CSS = ''; $('generate-boilerplate-btn').addEventListener('click', function () { const title = $('bp-title').value.trim() || 'My AMP Page'; const canonical = $('bp-canonical').value.trim() || 'https://example.com/'; const desc = $('bp-desc').value.trim(); const css = $('bp-css').value.trim(); const compsRaw = $('bp-components').value.trim(); const components = compsRaw ? compsRaw.split(',').map(c => c.trim().toLowerCase()).filter(c => c.startsWith('amp-')) : []; const lines = []; lines.push(''); lines.push(''); lines.push(''); lines.push(' '); lines.push('