NetPad is a free, open source ides & code editors project written in C# and released under MIT. It has 2,278 GitHub stars, 132 forks and 63 open issues, and was last pushed 2 months ago. On this registry it ranks #38 of 42 tracked projects in IDEs & Code Editors, with 5 head-to-head comparisons available.

What is NetPad?

NetPad is an open-source, cross-platform C# editor and playground for developers who want to run C# snippets instantly without creating and managing projects.

What it is

NetPad is a desktop and browser-based C# playground written in C# and built on the .NET ecosystem, available as an Electron package and as a lighter Native (vNext) variant using a Tauri shell. It presents itself as an open-source, cross-platform alternative to LINQPad, covering the most commonly used features of that tool while introducing new ones of its own. It runs on Linux, macOS, and Windows, and can also run in a web browser.

The concrete problem it solves is the friction of spinning up a full project just to try a line of code. With NetPad you open the editor, start coding, hit Run, and see your output immediately, which removes the need to create and manage project scaffolding for short-lived code. That makes it a direct replacement for the ad-hoc scratch files, throwaway console projects, and LINQPad licences that .NET developers otherwise reach for when prototyping, querying a database, or testing a language feature.

Key capabilities

  • Run C# code instantly from the editor without creating or managing a project structure.
  • Query databases using LINQ or SQL through connections that rely on EF Core tools (v6 or later).
  • Create interactive visualizations of data for analysis and insight.
  • Save and reuse utility or administration scripts for repeated execution.
  • Experiment with new C# features or learn the language in an accessible environment.
  • Ship as two equally maintained variants: an Electron package whose installers start with netpad, and a Native (vNext) Tauri package whose installers start with netpad_vnext.
  • Operate from the command line via the npad CLI, published as the NetPad.CLI NuGet package.

Who uses it and how

  • .NET developers prototype and test code snippets before incorporating them into their larger projects.
  • Data-focused users visualize data interactively and run LINQ or SQL queries against connected databases.
  • Learners use it as an intuitive environment to experiment with new C# features while learning the language.
  • Administrators maintain saved utility or administration scripts that they re-run over time.
  • Contributors and users collaborate through the project's Discord server and track work across its 63 open issues.

Getting started

Install the .NET SDK (v6 or later), then download an installer from the GitHub Releases page — choose an netpad Electron installer, an netpad_vnext Native installer, or install through community packages such as winget install --id=TareqImbasher.NetPad -e or yay -S netpad-bin on Arch. Database connections additionally require EF Core tools (v6 or later).

How it compares

NetPad is explicitly built as an open-source, cross-platform alternative to LINQPad, targeting the most commonly used features of that tool while adding capabilities of its own such as browser use and the npad CLI. It carries an MIT licence, so the code is inspectable and self-hostable, unlike a proprietary editor licence.

When to use it — and when not

Self-hosters and desktop users must install the .NET SDK (v6 or later), and anyone using database connections must also install EF Core tools (v6 or later), while the macOS build may require troubleshooting before it opens. Developers who need a full project-oriented IDE rather than a scratch playground should look elsewhere, and prospective users should note the project carries 63 open issues; it is MIT-licensed and was last pushed on 2026-08-18.

project readme (upstream, from github) — read inline

NetPad

A cross-platform C# editor and playground.

GitHub Actions Workflow Status GitHub Release npad cli version GitHub commits since latest release Discord

NetPad preview

Get Started

NetPad is a C# playground that lets you run C# code instantly, without the hassle of creating and managing projects. Open NetPad, start coding, hit Run, and see your output immediately. It's that simple.

  • Prototyping and Testing: Quickly prototype and test code snippets before incorporating them into your projects.
  • Data Visualization: Visualize data interactively for better insights and analysis.
  • Database Queries: Query databases using LINQ or SQL effortlessly.
  • Learn and Experiment: Experiment with new C# features or start learning C# in an intuitive and accessible environment.
  • Utility Scripts: Create and save your own utility or administration scripts for repeated use.

See Features.

If you like this project, please star it :star2: and consider sponsoring!

Motivation

This project aims to create an open-source, cross-platform alternative to LINQPad. NetPad can run as a native desktop app or in a web browser, and aims to cover the most commonly used features while introducing new ones of its own.

Discord

Join the Discord server to collaborate, ask questions and get the latest announcements.

Requirements

The following must be installed to use NetPad:

Additional requirement if you plan to create and use database connections:

Download

Official Installers

Download Now!

NetPad comes in 2 variants:

  • Electron: The current stable package. Installers start with netpad
  • Native (vNext): Uses a native desktop shell built with Tauri instead of Electron, resulting in a lighter package that uses fewer system resources. Installers start with netpad_vnext

Both variants have the same features and are equally maintained. The Native (vNext) variant is planned to become the main package, at which point the Electron variant may be deprecated.

[!NOTE] On macOS see this if you have trouble opening NetPad.

Community Packages

These packages are maintained by community members.

Installer Channel Command
AUR Version stable yay -S netpad-bin
AUR Version vNext yay -S netpad-vnext-bin
WinGet Package Version stable winget install --id=TareqImbasher.NetPad -e
WinGet Package Version vNext winget install --id=TareqImbasher.NetPad.vNext -e

Updates

NetPad checks for updates on startup and will notify you when a new version is available. The latest version can always be downloaded from the Releases page.

Wiki

The Wiki is a great place to find more information about NetPad. See the Troubleshooting page if you run into any issues.

Features :rocket:

  • Scripting:
    • Write, save and run your own scripts
    • Manage namespaces
    • Per-script .NET SDK version selection
    • Auto-open unsaved scripts from previous session on launch
  • Output & Visualization:
    • Dump complex objects to the results console
    • Export results to Excel or HTML
    • User-defined results styling
  • Database:
    • Add database connections and servers
    • Query with LINQ or SQL
  • Packages & References:
    • Add NuGet packages to scripts
    • Reference assemblies from disk
  • CLI:
    • Run scripts from the command-line using npad
  • Code Analysis:
    • Syntax Tree Visualizer
    • IL Viewer
  • Editor:
    • Vim keybindings
    • User Secrets management
  • Code Intelligence (OmniSharp):
    • Code Completion (Intellisense)
    • Semantic Highlighting
    • CodeLens
    • Inlay Hints
    • Hover for Documentation
    • Go-to implementation
    • Find References
    • Find Symbol
    • Rename Symbol
    • Action Suggestions
    • Diagnostics
    • Document Highlighting
    • Contextual code folding
    • Format document/selection/on-type

Recently Added in v0.11.0 :sparkles:

  • .NET 10 Support: Support for the .NET 10 SDK.
  • NetPad CLI (npad): Run scripts, standalone C# files, and inline code directly from the terminal. Install with dotnet tool install -g netpad.cli. Wiki
  • IL Viewer: Inspect the generated IL for your scripts in the Code pane.
  • User Secrets Manager: Manage and access user secrets via a dedicated pane and Util.Secrets. Wiki
  • Oracle Data Connections: Oracle database connections are now supported.

Planned Features :construction:

  • Debugging
  • Hyperlink driven Lazy-loading of results, and a DataGrid view
  • Benchmark your code
  • Referencing other scripts
  • Export a script as a "ready to run" .NET app
  • Export a script as a C# project
  • Git tracking of script changes
  • Workspaces/Sessions
  • Plugins

Contribution & Support

All Pull Requests, feedback and contributions are welcome! Please read the Contributing guidelines for more information about how to contribute and build/run the project.

A special thanks to NetPad's wonderful sponsors. Sponsorships help pay for macOS builds and cross-platform testing and helps me maintain this project.

mattjcowan   lpreiner   ChristopherHaws   OddSkancke   SimonNyvall   

If you enjoy using NetPad and would like to support its continued development, consider sponsoring the project. A small contribution helps immensely with maintenance and the addition of new features. Thank you for your support! :heart:





Tech Stack :computer:

  • .NET for the backend.
  • ElectronSharp (github) for the Electron desktop app and Tauri (docs) for the native desktop app.
  • Aurelia 2 (docs) for the UI.

Build

See CONTRIBUTING.md for instructions on how to build and run NetPad from source. NetPad can be run as a desktop app or as a web application accessed with a web browser.

Resources :books::

Frequently asked questions

Is NetPad free to use?

NetPad is open source under the MIT licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does NetPad do?

A cross-platform C# editor and playground.

What is NetPad written in?

NetPad is primarily written in C#. Its source is publicly available at https://github.com/tareqimbasher/NetPad, and it has 2,278 GitHub stars.