# Free OpenAPI validator — Routebase

> AI agents can read every page of this site as Markdown, and the full index is at https://routebase.dev/llms.txt.

> A broken OpenAPI document fails in the import or the code generator, and the message rarely says where. Paste or drop your file here, and you'll see every error with the line it sits on and the JSON pointer that leads to it.

Canonical page: https://routebase.dev/openapi-validator/

## What the validator checks

A document can look fine in an editor and still break the tools that read it, because a missing field only shows up when a generator trips over it.

The validator checks your document against the official JSON Schema for the version it declares, whether that's OpenAPI 3.0, 3.1 or 3.2 or Swagger 2.0. It follows every internal reference as well and reports the ones that point at nothing. It also checks that each operationId is unique and that every placeholder in a path has a matching path parameter, which a schema alone cannot see.

Each error names its line and column and explains in one sentence what's wrong. A click on the error selects that line in the text box, and the JSON pointer beside it shows the exact place in the document. A reference to another file or URL is listed on its own and never fetched, so the check stays inside the document you gave it.

## Your document stays in your browser

An API description often names internal hosts and endpoints that aren't public yet, so it's worth knowing where a validator sends it.

This one sends it nowhere, because parsing and validation run in your browser and the page transmits nothing of the document's content while it checks. Each check is counted anonymously with its result and the OpenAPI version, and that count carries nothing from the document. You can confirm it in the network tab of your browser's developer tools, and the document only leaves the page when you choose to open it in Routebase.

## Valid is where the work starts

A valid document is well-formed, but validity says nothing about whether the API behind it is consistent and whether a team can build against it without guessing.

Routebase rates the same document and shows you which changes lift it the most, so you know what to fix first instead of working through a long list. The button under a result opens Routebase with your document, and once you've signed up, it's imported into your workspace and rated on its own.

The rating is part of the Pro plan, and every account starts with a 14-day Pro trial that needs no credit card.

## Frequently asked questions

### What does this OpenAPI validator check?

It checks your document against the official JSON Schema for the version it declares, which can be OpenAPI 3.0, 3.1 or 3.2 or Swagger 2.0. It also follows every internal reference and reports the ones that point at nothing. Beyond what a schema can express, it checks that each operationId is unique and that every path placeholder has a matching path parameter. A valid result means the document is legal OpenAPI, which is a different question from whether it follows a style guide.

### Is my document uploaded when I validate it?

No. The document is parsed and validated in your browser, and the page sends nothing of its content anywhere while it checks. It leaves the page only when you open it in Routebase, which passes it to the app in your browser and imports it into your own account after you sign in.

### Does it work as a Swagger validator too?

Yes. A Swagger 2.0 document is checked against the Swagger 2.0 schema and shows its errors in the same view as an OpenAPI document. The button that opens a document in Routebase appears for OpenAPI 3.0, 3.1 and 3.2, because those are the versions Routebase writes its specifications in.

### What happens to references to other files?

A $ref that points to another file or to a URL is listed in its own block with its line, and the validator never fetches it. The rest of the document is still checked, and the external target is not counted as an error, because it lives outside the document you pasted.

### How large can the document be?

The validator takes documents up to 9.5 MB in JSON or YAML. A larger file is refused before your browser reads it, and the result names the limit.

### Is the OpenAPI validator free?

Yes. It needs no account and no sign-up, and you can validate as many documents as you like.

---

[Routebase](https://routebase.dev/) — [Sign up](https://app.routebase.dev/): Every account starts with a 14-day Pro trial — no credit card required.
