EpubCheck is a tool to validate IDPF Epub files. It can detect many types of errors in Epub. OCF container structure, OPF and OPS mark-up, and internal reference consistency are checked. EpubCheck can be run as a standalone command-line tool, installed as a web application or used as a library.