
ILSpy
Open-source .NET assembly browser and decompiler
Replaces Redgate Net Reflector, Jetbrains

Who it's for
A .NET library author needs to trace a bug in a NuGet dependency that ships without source. ILSpy decompiles the package directly from the NuGet feed and lets them step through the reconstructed C# logic.
Source Link or embedded PDBs are already available for the dependency
A team inherits compiled assemblies from a decommissioned project with no source repository. ILSpy's whole-project decompilation exports a navigable C# project they can bring into version control.
Original source code is accessible
A security researcher auditing a closed-source .NET application uses ILSpy to inspect assembly metadata, review decompiled logic, and export findings without installing a commercial disassembler.
A developer building a .NET IDE plugin or static analysis tool adds the `ICSharpCode.Decompiler` NuGet package to embed ILSpy's engine and produce decompiled output programmatically.
The use case needs only IL text rather than reconstructed C#
The problem
.NET assemblies are distributed as compiled IL bytecode, which makes it difficult to inspect the source logic of third-party libraries, debug production issues without matching PDBs, or understand legacy code where the original source is unavailable. ILSpy decompiles those assemblies back to C# so developers can read, navigate, and reason about the code regardless of whether source was shipped.
How it works
Decompiles .NET IL bytecode back to C# source, with a public language support status tracker listing exactly which constructs are handled.
Exports an entire assembly or set of assemblies as a decompiled C# project, not just individual types or methods.
Ships as a cross-platform Avalonia desktop app, a Visual Studio 2022/2026 marketplace extension, a VS Code extension, a dotnet CLI tool (ILSpyCmd), and PowerShell cmdlets.
Provides a dedicated metadata explorer for inspecting assembly headers, custom attributes, and low-level PE metadata beyond what the decompiled C# view shows.
Handles ReadyToRun (R2R) binaries produced by .NET Core's ahead-of-time compilation, with a dedicated tutorial in the project wiki.
Publishes `ICSharpCode.Decompiler` and `ILSpyX` on NuGet so other tools can embed the same decompiler engine.
Features
- C# Decompilation
- Whole-Project Decompilation
- Multiple Frontends
- Assembly Metadata Explorer
- ReadyToRun Support
- NuGet Packages for Embedding
How to install
dotnet tool install ilspycmd -g
Recommended for this setup
Strengths
- Integrated into Visual Studio by Default: Visual Studio 2022 and 2026 ship ILSpy's decompiler engines (v8.2 and v9.1 respectively) for F12 Go-to-Definition, meaning millions of developers already use its output without a separate install.
- Truly Cross-Platform Desktop UI: The Avalonia-based desktop app runs natively on Windows, Linux, and macOS, with the same feature set on every platform.
- No Telemetry: ILSpy explicitly collects no personally identifiable information, sends no user files to third parties, and uses no APM or metrics service.
- Embeddable Decompiler Engine: The `ICSharpCode.Decompiler` NuGet package lets projects integrate .NET decompilation programmatically, not just through the UI.
Trade-offs
- Windows GAC and Process Attach are Windows-Only: Opening assemblies from the Global Assembly Cache or from a running process is documented as a Windows-only feature; those workflows are unavailable on Linux and macOS.
- Build Requires .NET 11.0 SDK for Tests: Running the full unit test suite requires the .NET 11.0 SDK in addition to .NET 10.0; the SDK version is managed by Visual Studio's installer and can cause test failures after an update if not manually pinned.
- Decompilation is Not Full Source Recovery: The language support status page tracks constructs that are not yet fully reconstructed; complex compiler-generated patterns, obfuscated assemblies, or heavily optimized code may produce incomplete or uncompilable output.
Tech stack
FAQ
Yes. ILSpy is distributed under the MIT License with no usage restrictions.
Yes. The desktop UI is built on Avalonia and runs on Windows, Linux, and macOS. The CLI tool ILSpyCmd and the PowerShell cmdlets also support all three platforms.
Install the dotnet CLI tool with `dotnet tool install ilspycmd -g`, use the Visual Studio 2022/2026 marketplace extension, or install the Visual Studio Code extension from the VS Code marketplace or Open VSX.
Yes. The `ICSharpCode.Decompiler` and `ILSpyX` packages are published on NuGet for programmatic use in your own projects.
No. ILSpy's privacy policy states it collects no personally identifiable information, sends no user files to third-party services, and uses no APM or telemetry service.