DevTools Logo

OpenAPI / Swagger Editor

OpenAPI / Swagger Editor

Parse, validate, and preview OpenAPI 3.x or Swagger 2.0 documents

Spec Input

2 spaces

About this tool

This tool parses an OpenAPI (3.x) or Swagger (2.0) document supplied as JSON or YAML, validates that it declares an API version and the required info/paths blocks, and renders a browsable preview: the API title and version, declared servers, every operation (method + path + summary), and a count of reusable schemas. The parsed document is re-emitted as formatted JSON. Use it to sanity-check a spec or explore an API without external tooling. Parsing is client-side; nothing is uploaded.

Examples & Use Cases

Minimal OpenAPI 3.1

openapi: 3.1.0
info:
  title: Pet Store API
  version: 1.0.0
paths:
  /pets:
    get:
      summary: List all pets
    post:
      summary: Create a pet

The smallest valid OpenAPI 3.x document — version, info, and a single path with two operations.

Legacy Swagger 2.0

swagger: "2.0"
info:
  title: Legacy API
  version: 0.9.0
host: api.example.com
basePath: /v1
paths:
  /users:
    get:
      summary: List users

Older Swagger 2.0 specs are detected and parsed the same way.

    .env Secret Safety Linter

    Validate .env syntax and spot likely leaked credentials or placeholder secrets.

    .htaccess Generator

    Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth

    2D Fluid Dynamics & Particle Physics Sandbox

    A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.

    AI Function Calling Schema Generator

    Generate function calling JSON schemas from TypeScript interfaces

    Algorithm Arena & Data Structure Visualizer

    Interactive arena for algorithms and data structures: eight sorting algorithms racing on one seeded input, six pathfinding algorithms walking generated mazes, and BST, AVL, Red-Black, B-tree, heap and trie operations replayed step by step with rotations highlighted. Every run shows the Big-O table and the phase-highlighted reference implementation in four languages, and compared values can be played as pitch (sonification) through the shared audio engine. Everything runs client-side; inputs never leave the browser.

    Ansible Playbook Generator

    Build an Ansible playbook — hosts, vars, and tasks with modules — as YAML