Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience our own tag's counts — open to see them
–Visits
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · visits, page views and clicks counted by our own tag, which counts more than our checked analytics; every figure rounded down · how we count

NSwag

Free#9 of 33 in Code Generators

NSwag: An open-source .NET toolchain for generating API specifications, clients, and controllers. Ranked #9 of 33 in Code Generators by our editors (8.3/10); pricing: Free plan; best for ASP.NET teams generating OpenAPI clients and controllers.

8.3/10Editor score
NSwag8.3 Visit NSwag

At a glance

  • Editor score
    8.3 / 10
  • Pricing
    Free plan
  • Best for
    ASP.NET teams generating OpenAPI clients and controllers
  • Free plan
    Yes
  • Paid from
    Free
  • Facts checked
    23 Sep 2026
NSwag screenshot
  • Where it wins

    • Generates Swagger 2.0 and OpenAPI 3.0 specifications from ASP.NET controllers
    • Creates C# and TypeScript clients from OpenAPI specifications
    • Offers CLI, MSBuild, middleware, and a Windows graphical interface
  • Where it doesn't

    • NSwagStudio is available only on Windows
    • Generation focuses on C# and TypeScript
    • Support channels are community resources and documentation

Our verdict on NSwag

NSwag is an open-source toolchain for creating Swagger and OpenAPI specifications and generating code from them. It suits ASP.NET teams that need to produce API documents from Web API or ASP.NET Core controllers, or create C# and TypeScript clients and ASP.NET controllers from an OpenAPI specification. The project supports Swagger 2.0 and OpenAPI 3.0, with CLI and MSBuild workflows for teams that want generation in their development process, plus NSwagStudio for configuring generation through a Windows graphical interface.

Its breadth across the API lifecycle is the main distinction: NSwag can generate specifications from ASP.NET controllers, serve those specifications through ASP.NET and OWIN middleware, and generate clients or controllers from the resulting documents. NuGet, NPM, MSBuild, ASP.NET Core, and OWIN integrations make it a fit for .NET-centered projects that also need TypeScript client generation. Teams choosing it should be comfortable with the C# and TypeScript focus; it is not a general-purpose multi-language code generator.

NSwag is open source and has a free plan, with deployment listed as self-hosted and desktop rather than a paid SaaS service. Automation is available through command-line tools and MSBuild targets, while NSwagStudio offers a visual configuration option on Windows. Support is through community channels and documentation. Pick NSwag when OpenAPI-based generation needs to fit an ASP.NET workflow; teams seeking a broader language range, or a graphical interface on macOS or Linux, should consider alternatives.

Your product? Our editors can test NSwag in depth and publish a review, labelled as paid · from $149/mo →

NSwag pricing

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on github.com

NSwag fact sheet

Free planYes
Paid fromFree
Project scaffoldingNot verified
Custom templatesYes
Schema-to-code generationYes
CLI availableYes
IDE pluginsNot verified
Supported languagesC#, TypeScript
DeploymentSelf-hosted, Desktop
PlatformsWindows, macOS, Linux
SupportCommunity, Docs
Built forSolo, Small business, Mid-market, Enterprise (editorial estimate)
Integrations5 integrations: NuGet, NPM, MSBuild, ASP.NET Core, OWIN
PricingFree plan
Websitegithub.com
Facts checked23 Sep 2026

NSwag integrations

NSwag lists 5 integrations on its own site.

  • NuGet
  • NPM
  • MSBuild
  • ASP.NET Core
  • OWIN

Alternatives to NSwag

See all NSwag alternatives →

Used NSwag? Be the first to review it

The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used NSwag for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.

Write a reviewTwo minutes · verified accounts only · read by an editor before it appears

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — NSwag 8.3/10

NSwag is listed in our Code Generators directory. Add the badge to your site — it links back to this page.

<a href="https://www.itechguides.com/products/nswag/"><img src="https://www.itechguides.com/best/badge/nswag.svg" alt="Featured on iTechGuides" width="230" height="46"></a>

Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.

Last updated · How we research and update