Skip to content
Developer & CodeLocal · Stays on device

OpenAPI Spec Viewer

Browse an OpenAPI 3 or Swagger 2 file: endpoints, parameters and responses, structural checks, an exportable endpoint table and mock data.

  • OpenAPI 3.0 / 3.1 (YAML or JSON), Swagger 2.0
  • Free to use
  • No sign-up or watermark
openapi-spec-viewerOn this device
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10
OpenAPI 3.0 / 3.1 (YAML or JSON)Swagger 2.0
Open OpenAPI Spec Viewer

Not yet professionally reviewed. This tool’s formulas and wording have not been checked by a qualified professional. Use the results as an estimate and verify anything important.

Checks cover common structural mistakes and aren't a complete OpenAPI validation. Mock data is fictional and for testing only.

About this tool

Paste or open an OpenAPI 3.x or Swagger 2.0 document in YAML or JSON. The viewer lists every endpoint with its method, path, summary, parameters (merged from path and operation level), request body types, responses and required authentication, and you can filter by tag. Local $ref references are resolved; external references are listed, not loaded.

Structural checks flag path parameters that don't match the path template, path parameters not marked required, operations with no responses, duplicate operationIds and missing references. The Endpoint table view exports every operation to CSV or Markdown for documentation, and the Mock data view generates repeatable example request and response bodies from the schemas, honouring examples, defaults, enums, formats (email, uuid, date-time…), min/max and allOf/oneOf. Everything runs in your browser. What you paste is never uploaded, logged or stored.

  1. Input

    Your code or text

    OpenAPI 3.0 / 3.1 (YAML or JSON), Swagger 2.0

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelineInstant, in-browser

How to use it

  1. 1

    Paste or drop your OpenAPI file.

  2. 2

    Review the checks and browse the endpoints.

  3. 3

    Switch to Endpoint table or Mock data to export.

Zero-upload architecture

How to use OpenAPI Spec Viewer for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device

  1. 1

    Open OpenAPI Spec Viewer

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Review the checks and browse the endpoints.

  3. 3

    Get your result

    Switch to Endpoint table or Mock data to export.

  • Local

    API Request Builder

    Build an HTTP request (method, URL, query, headers, auth, body) and copy it as cURL, fetch, HTTPie or Python requests.

    Open tool
  • Local

    JSON Schema Generator

    Infer a starter JSON Schema (draft 2020-12) from sample JSON, with types, nested objects, arrays, required keys and formats.

    Open tool
  • Local

    YAML Validator

    Validate YAML syntax with exact line and column errors, duplicate-key detection and multi-document support.

    Open tool
  • Local

    HTTP Status Code Lookup

    Look up any HTTP status code: its official name and RFC, what it means in plain language and when to use it.

    Open tool