OpenAPI Spec Cleaner for Selected Paths

Remove unused paths from an OpenAPI spec to create smaller, focused docs.

OpenAPI Spec Cleaner

Trim large OpenAPI specs by keeping only the paths you need. API teams use this to generate smaller docs, share limited scopes, or reduce review noise.

How to use the OpenAPI Spec Cleaner

  1. Paste your OpenAPI JSON.
  2. Select or list the paths to keep.
  3. Click Clean to generate the trimmed spec.

Common use cases

  • Sharing a subset of endpoints with partners.
  • Creating smaller docs for specific services.
  • Removing deprecated paths before review.
  • Simplifying specs for testing or mocks.

Tips & notes

  • Validate the output in your OpenAPI viewer.
  • Keep a backup of the original spec.
  • Review security schemes referenced by the kept paths.

Related developer tools

  • API Response Comparator
  • API Payload Size Analyzer
  • REST to GraphQL Converter
  • JSON Formatter

FAQ

Input format?
JSON OpenAPI spec.
Are components preserved?
Components are kept when referenced by remaining paths.
Can I remove tags only?
This tool focuses on paths; tag cleanup depends on the remaining paths.