Skip to main content
SiteIndex
DeveloperReady to use

OpenAPI Viewer

Inspect API operations and paths from an OpenAPI or Swagger document in JSON or YAML.

Guide

Interactive workspace

No account required

OpenAPI Viewer

These extra tools run in your browser. JWT signing keys and source text stay in this tab; treat generated tokens as credentials and never publish secrets.

  • New

    cURL converter: Translate common cURL requests into Python, JavaScript, and PHP.

  • New

    JWT signer: Sign JSON claims with HMAC or an RS256 PKCS#8 key.

  • New

    OpenAPI viewer: Inspect operations from JSON, YAML, OpenAPI, or Swagger files.

  • New

    .gitignore generator: Start a project ignore file from Node, Python, Java, Go, or React presets.

  • New

    CSS specificity calculator: Compare common ID, class, attribute, pseudo-class, and element selectors.

  • New

    Code screenshot generator: Render a code snippet locally and download a PNG.

  • New

    README + license generator: Draft a README and SPDX license notice for a project.

cURL to Python, JavaScript, and PHP
Python (requests)
import requests
response = requests.post("https://api.example.com/items", headers={"Content-Type":"application/json"}, data="{\"name\":\"sample\"}")
print(response.status_code, response.text)
JavaScript (fetch)
const response = await fetch("https://api.example.com/items", { method: "POST", headers: {"Content-Type":"application/json"}, body: "{\"name\":\"sample\"}" });
console.log(response.status, await response.text());
PHP (cURL)
$ch = curl_init("https://api.example.com/items");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"name\":\"sample\"}");
$response = curl_exec($ch);
curl_close($ch);
JWT signer (HS256, HS384, HS512, RS256)

Signing does not validate token claims, issuer, audience, or authorization policy. Avoid production secrets in shared devices.

OpenAPI / Swagger viewer
.gitignore generator
node_modules/
.npm/
.env*
dist/
coverage/
.DS_Store
CSS specificity calculator

Specificity (IDs, classes/attributes/pseudo-classes, elements): 1, 2, 3

This quick estimate follows common selector forms; :is(), :not(), and :has() argument specificity can vary from this simplified count.

Code screenshot generator
function greet(name) {
  return `Hello, ${name}!`;
}
README and license notice generator

README.md

LICENSE (SPDX notice)

The notice identifies the license but is not a substitute for the complete license text; include the official full text in distributed projects.

How to use it

  1. Paste an OpenAPI or Swagger JSON/YAML document.
  2. Select View API operations.
  3. Review the method, path, and summary table.
What is OpenAPI Viewer?

Inspect API operations and paths from an OpenAPI or Swagger document in JSON or YAML.

How it works

Parse the supplied JSON or YAML document, find its paths object, and list supported HTTP operations with summaries.

Common uses
  • Browse endpoints in an OpenAPI document.
  • Review HTTP methods and paths before implementing a client.
  • Quickly inspect a Swagger document without calling its API.
Limitations
  • This lightweight viewer does not resolve external references or render a full interactive API explorer.
  • Input is parsed locally and is not sent to an API server.
Frequently asked questions
Does the viewer call API endpoints?
No. It only reads the document and lists operation metadata locally.
Which document formats are supported?
The viewer accepts OpenAPI or Swagger documents in JSON or supported YAML syntax.
Does it resolve external references?
No. This lightweight viewer lists operations in the supplied document and does not fetch external references.

Related tools