The .NET Programmer’s Playground
  • Instantly test any C#/F#/VB snippet or program
  • Query databases in LINQ (or SQL) — SQL/Azure, Oracle, SQLite, Postgres & MySQL
  • Enjoy rich output formatting, autocompletion with AI and integrated debugging
  • Script and automate in your favorite .NET language
  • Interoperate with xUnit, BenchmarkDotNet, Rx, MSAL, Excel and more
  • Super lightweight — small and fast, with xcopy option
  • Standard edition free with no expiry
4 million downloads

The Ultimate Scratchpad for C#, F# and VB

LINQPad is not just for LINQ queries, but any C#/F#/VB expression, statement block or program. Put an end to those hundreds of Visual Studio Console projects cluttering your source folder and join the revolution of LINQPad scripters and incremental developers.

Reference your own assemblies and NuGet packages. Prototype your ideas in LINQPad and then paste working code into Visual Studio. Or call your scripts directly from the command-line.

Want to test a variation of your script? Clone your query in a single keystroke!

Experience LINQPad’s rich output formatting, optional debugger and autocompletion, and the magic of dynamic development and instant feedback!

Query Databases in a Modern Query Language

Hanselman
Fantastic Learning Tool”

Scott Hanselman, Principal Program Manager, Microsoft

Full support for C# 12 and .NET 8 in LINQPad 8.

With LINQPad, you can interactively query databases directly in LINQ (as well as SQL). The big advantage with LINQ is that association properties are automatically generated for all relationships (inferred from foreign key constraints), so you can access related rows without needing to join! LINQPad uses a custom high-performance cached scaffolding engine behind the scenes, and includes drivers for SQL Server, SQL Azure, Oracle, SQLite, PostgreSQL and MySQL.

When dumped, association properties appear as lazy hyperlinks that can be expanded just by clicking on them. You can walk your entire database interactively!

LINQPad Screenshot
“This is one of those useful tools you just should always have around and ‘linqed’ to a hotkey”

Rick Strahl, West Wind Technologies

And when you need to, you can still query in good old-fashioned SQL. Use LINQPad to query SQL Server, SQLite, Oracle, MySQL or PostgreSQL — without installing any client software!

Experience the Legendary Dump!

LINQPad’s Dump method is famous for its capacity to eat almost anything!

Tuned with numerous heuristics, it intelligently walks object graphs for the best possible output. It even turns lazy objects into hyperlinks and asynchronous values into placeholders whose content materializes in the future!

Images and bitmaps render as images and bitmaps, and types from Reactive Extensions and Dataflow fully animate.

Dump any WPF or Windows Forms object and it will actually render.

Call the .Chart extension method to output data as a chart, using LINQPad's inbuilt charting engine.

And when you need a traditional data grid or debugger watch window, it’s there, too.

A Serious Rapid Coding Tool

With its support for advanced C# features such as async / await and unsafe, LINQPad is capable of serious rapid coding jobs.

Such as writing a neural network from scratch!

Import other queries or .cs files with the #load directive - or the My Extensions query.

Reference project assemblies from your Visual Studio solution, and use LINQPad as an interactive test harness. Or use LINQPad to provide instant entry points into any part of your solution.

Use LINQPad for build scripts and to automate cloud management tasks - and execute them from the command line with LPRun.

Debug your code with an optional lightweight debugger, and move through your code quickly with symbol navigation, outlining and bookmarking.

LINQPad is also a great way to learn C#: it comes with all 1300 examples from the book, C# 12 in a Nutshell, as well as interactive samples from Jon Skeet's C# in Depth.

Effortless Benchmarking

Ever needed to benchmark your code? Now you can do so with a single keypress! LINQPad uses the industrial-grade BenchmarkDotNet for accurate results, which it presents via a customizable graphic real-time visualizer - no more digging through text-based logs! All without effort on your part.

LINQPad Benchmark.NET integration