FIRST CH TOOLS / Development / 73 OPENAPI DOC GENERATOR
OpenAPI → Markdown Docs & TypeScript Types
Turns an OpenAPI / Swagger specification (JSON or YAML) into API documentation in Markdown (Japanese or English) and TypeScript type definitions (.ts). You get the endpoint list, parameter tables, request and response examples and schema tables; copy either one or save it as a file. The specification is read on this page only and never leaves your device.
1 — Specification (OpenAPI / Swagger)
2 — API documentation (Markdown)
3 — TypeScript type definitions
- Paste a specification, or press “Load sample”.
Parsing the specification and building the docs and types all happen on this page. The specification you paste or the file you choose is never sent to a server, so internal API specs are fine to use. Nothing is taken from URL parameters.
How to Use
- Add the specificationPaste the contents of openapi.yaml or swagger.json, or open or drop the file. OpenAPI 3.0 / 3.1 and Swagger 2.0 are read, in JSON or YAML.
- Pick the language and outputsChoose Japanese or English for the document, whether to build response examples, and whether to emit per-endpoint types. Output is generated as soon as the spec is in.
- Copy or saveSave the Markdown as .md and the types as .ts. Drop the types into something like src/types/ in your front end and import them.
About This Tool
This tool turns an OpenAPI (formerly Swagger) specification into two things at once: readable API documentation in Markdown — in Japanese or English — and TypeScript type definitions for the front end. Parsing and string building happen only on this page, for teams that would rather not upload their specification to an outside service.
The documentation (Markdown) starts with base URLs, the endpoint list and the authentication schemes, then gives each endpoint a parameter table (name, location, type, required, description), the request body, a response table and examples, and ends with a property table for each schema. Endpoints are grouped by tag when tags exist. Examples written in the spec (example / examples) come first; otherwise one is built from the schema’s type, format, enum and default, and the heading says so. Headings and fixed phrases follow the chosen language; descriptions are kept exactly as written in the spec (nothing is translated).
The TypeScript definitions turn each entry in components.schemas (definitions in Swagger 2.0) into an export interface or export type. Properties not listed in required get ?; enum becomes "a" | "b", allOf becomes &, oneOf / anyOf become |, nullable (or type: [..., "null"] in 3.1) becomes | null, readOnly becomes readonly and format: binary becomes Blob. Descriptions, formats, defaults and deprecation are kept as JSDoc comments, so they show up in editor hints. Per-endpoint types are named …Params, …RequestBody and …Response after the operationId (or the method and path). The output has been checked to compile under TypeScript --strict with real specifications, including the public GitHub and Stripe ones.
Limits: a $ref pointing to another file or URL (such as ./schemas/user.yaml) is not fetched; its type becomes unknown and you are told. Use a bundled, single-file specification. No SDKs or client code that actually calls the API are generated — type declarations only. YAML is read as YAML 1.2, including anchors, aliases and merge keys; syntax errors stop with the line and column. For converting or formatting YAML and JSON themselves use JSON ⇄ YAML Converter; to turn JSON responses into a table, CSV/TSV ⇄ JSON Converter; to tidy Markdown tables, Markdown Table Generator.
Other Tools
- 01Batch Image → WebPWebP Converter
- 02White Background RemoverWhite BG Remover
- 03WCAG Contrast CheckerContrast Checker
- 04Character CounterCharacter Counter
- 05llms.txt Generatorllms.txt Generator
- 06JSON-LD GeneratorJSON-LD Generator
- 07Markdown → PDFMD → PDF
- 08OGP Meta Tag WizardOGP Wizard
- 09Favicon GeneratorFavicon Generator
- 10TikTok PublisherTikTok Publisher
- 11Encoding & Line Ending ConverterEncoding Converter
- 12Batch Image → AVIF + pictureAVIF Converter
- 13Test Data GeneratorTest Data Generator
- 14Marp Markdown → SlidesMarp Slides
- 15Text & Code Diff CheckerDiff Checker
- 16Cron Explainer & Next RunsCron Explainer
- 17Base64 & Data URI EncoderBase64 & Data URI
- 18URL Parameter Editor & UTM BuilderURL Parameters
- 19HTML Entity Escape & UnescapeHTML Escape
- 20JSON ⇄ YAML ConverterJSON ⇄ YAML
- 21PX ⇄ REM / EM ConverterPX ⇄ REM / EM 単位変換
- 22Color Converter & AlphaColorコード変換&アルファ透過
- 23MD5 / SHA-256 Hash Generatorハッシュ生成
- 24JWT Decoder & Expiry CheckerJWTデコーダー&有効期限チェッカー
- 25User-Agent ParserUser-Agent解析&デバイス判定
- 26UUID & ULID GeneratorUUID (v4) & ULID 一括生成
- 27Aspect Ratio Calculatorアスペクト比計算&サイズ算出
- 28Markdown Table GeneratorMarkdownテーブル整形&CSV/TSV変換
- 29SQL Query FormatterSQL Formatter
- 30QR Code GeneratorQR Code Generator
- 31Regex Tester正規表現テスター
- 32Unix Timestamp ConverterUNIXタイムスタンプ⇄日時変換
- 33New Tab Memo新規タブメモ帳
- 34Image Resizer & Cropper画像リサイズ&クロップ
- 35EXIF Viewer & RemoverEXIF情報の確認&除去
- 36robots.txt Generatorrobots.txt ジェネレーター
- 37Password Generator安全なパスワード生成
- 38Case Converter文字列ケース変換
- 39CSV/TSV ⇄ JSON ConverterCSV/TSV ⇄ JSON 相互変換
- 40PDF Merge, Split & ExtractPDF結合・分割・ページ抽出
- 41Full-width ⇄ Half-width Converter全角⇄半角変換&テキストクリーナー
- 42X (Twitter) Post CounterX(Twitter)投稿の文字ウェイト計算
- 43CSS clamp() Fluid Typography CalculatorCSS clamp() 計算機
- 44CSS Gradient GeneratorCSSグラデーションジェネレーター
- 45Image Colour Palette Extractor画像からカラーパレット抽出
- 46QR Code ReaderQRコード読み取り
- 47SVG Optimizer & Data URISVG最適化&data URI化
- 48Redirect Generatorリダイレクトルール ジェネレーター
- 49IP / CIDR CalculatorIPアドレス・CIDR計算機
- 50ICS Calendar Event GeneratorICS Generator
- 51cubic-bezier Easing Preview & ComparisonEasing Preview
- 52CSS box-shadow Generatorbox-shadow ジェネレーター
- 53Japanese Dummy Text Generator和文ダミーテキスト生成
- 54Social Media Image ResizerSNS画像サイズ一括書き出し
- 55Time Zone Converter & World Clockタイムゾーン変換・世界時計
- 56Date & Business Day Calculator日数・営業日計算
- 57HTML → MarkdownHTML→Markdown変換
- 58HEIC to JPEG/PNG ConverterHEIC Converter
- 59Print Size & DPI Calculator印刷サイズ・DPI計算機
- 60Color Blindness SimulatorColor Blindness Simulator
- 61SERP Preview & Meta Tag Length CheckerSERPプレビュー&メタタグ文字数チェック
- 62Flexbox & CSS Grid GeneratorFlexbox / CSS Grid ジェネレーター
- 63Text Line Toolsテキスト行操作ツール
- 64Screenshot Frame & Background Makerスクリーンショット枠装飾
- 65Japanese Era ⇄ Western Calendar Converter和暦 ⇄ 西暦変換
- 66URL Slug Generator (Japanese → Romaji)URLスラッグ生成(日本語→ローマ字)
- 67htpasswd Generatorhtpasswd ジェネレーター
- 68OGP Image GeneratorOGP画像ジェネレーター
- 69Stamp Shape Generatorスタンプ形ジェネレーター
- 70Stay Awakeスリープ防止
- 71Screen Recorder with Click Auto-Zoom画面録画+クリック自動ズーム
- 723D Device Mockup Generator3Dデバイスモックアップジェネレーター