There is an online AMP validator available at validator.ampproject.org. It works much like the browser console validator, indicating if your pages validate and listing errors when they don't. An advantage of the online validator is that it displays validation errors right next to the markup that caused the error, as shown in the following image: