Swagger & OpenAPI Spec Viewer

Got an openapi.json from a colleague and no Swagger UI handy? Paste it — get every endpoint in a readable table with methods, summaries and parameter counts.

—
Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/openapi-viewer" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/openapi-viewer" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - Swagger & OpenAPI Spec Viewer</a></div>

What OpenAPI is

OpenAPI (formerly Swagger) is the standard machine-readable format for REST APIs: openapi.json describes every endpoint, method, parameter, schema and server. Teams share these specs to generate clients, docs and tests — and to argue about what the API actually does.

What this viewer does

Quick checks

What happens in the page

The pasted specification is parsed as JSON, then walked: escH() escapes every string before it reaches the DOM, paths are enumerated and each method under them is counted, and $ref pointers beginning with #/ are resolved in place by splitting the pointer and following it through the document, so a schema referenced from five places is expanded without duplication. The result is a collapsible endpoint list with parameters and responses.

Where it breaks down

Read-only rendering — there is no "try it" button, because sending requests would require credentials and would contact servers the page knows nothing about. References pointing outside the document cannot be resolved, since the browser does not have the other file. Some OpenAPI 3.1 fields are not displayed. Large specifications are expanded in one pass, so documents of several thousand lines render slowly.

Privacy: no data leaves this tab

The specification is parsed locally and rendered into the page. No API endpoint listed inside it is contacted, and no token is sent.

Frequently asked questions

Can I call the API from here?

No. Rendering documentation and sending authenticated requests are different jobs; the second needs a server-side proxy and real credentials.

Why are some $ref values blank?

Cross-file references need the other document, which the browser cannot read. Inline the definitions into one file first.

Does it read YAML?

No. Convert to JSON first — YAML parsing would require a library, and this page deliberately avoids heavy dependencies.