
dnSpy earned its reputation by combining a decompiler, a debugger and an assembly editor in one tool. When the original repository was archived in 2020, many users went looking for a dnSpy alternative that would stay maintained. Others simply need something that runs outside Windows, integrates with their IDE or fits a company licensing policy. This guide compares the realistic options, what each does best, and where each falls short of dnSpy.
What to compare
“Alternative” means different things depending on which part of dnSpy you rely on. Before choosing, decide which of these capabilities you actually need:
- Decompilation quality: how readable and correct the generated C# is, especially for async code, pattern matching and newer language features.
- Debugging without source: setting breakpoints directly on decompiled code in a running process.
- Editing and saving: changing methods in C# or IL and writing a modified assembly.
- Navigation and analysis: search, “used by” and “uses” queries, and cross-assembly navigation.
- Platform and integration: Windows-only or cross-platform, standalone or inside an IDE.
- Maintenance and licence: active development, open source or proprietary, free or paid.
dnSpyEx: the direct successor
If you liked dnSpy, start here. dnSpyEx is a community fork of the original repository that continues development under the same GPLv3 licence. It keeps the familiar interface and feature set while fixing bugs, updating the decompiler and supporting newer .NET runtimes for debugging.
Best for: anyone who wants dnSpy’s full workflow with ongoing maintenance.
Limitations: still Windows-only; development pace depends on volunteer contributors.
ILSpy: the open-source decompiler at the core
ILSpy is the decompiler engine that dnSpy was built on, developed by the ICSharpCode team under the MIT licence. It is actively maintained and often first to support new C# language features in its output. Beyond the Windows desktop application, the project provides ilspycmd for the command line, a Visual Studio Code extension, and a NuGet package for embedding the decompiler in your own tools.
Best for: clean, up-to-date decompilation; reading code; exporting projects; scripting.
Limitations: no built-in debugger and no assembly editing. ILSpy shows code; it does not change it.
JetBrains dotPeek
dotPeek is a free, closed-source .NET decompiler for Windows from the makers of ReSharper and Rider. Its navigation will feel natural to ReSharper users, with features such as “go to everything”, type hierarchies and usage search. It can export decompiled code to a Visual Studio project and can act as a symbol server, generating PDBs on the fly so that Visual Studio can step into third-party code during a normal debugging session.
Best for: developers in the JetBrains ecosystem; debugging external libraries through Visual Studio with generated symbols.
Limitations: no standalone debugger, no editing, Windows-only.
.NET Reflector
.NET Reflector is one of the oldest .NET decompilers and is now a commercial product from Redgate. Its higher editions integrate with Visual Studio so you can step into decompiled code of referenced assemblies while debugging your own application. Over the years a range of community add-ins appeared for it, including some that enabled editing, though their maintenance varies.
Best for: organisations that prefer commercially supported tools with a vendor behind them.
Limitations: paid licence; editing is not part of the core product; Windows-only.
IDE-integrated decompilation
Modern IDEs have absorbed much of what standalone decompilers used to provide.
Visual Studio
Recent versions of Visual Studio can decompile external code using the ILSpy engine when you navigate to a definition without source, and can step into decompiled code while debugging your application. For many day-to-day questions about how a library behaves, this removes the need for a separate tool.
JetBrains Rider
Rider decompiles on the fly when you navigate into compiled code and lets you debug through it. It runs on Windows, macOS and Linux, which makes it a strong option when dnSpy’s Windows requirement is the main problem.
Limitation of both: they are designed around your own solution. Attaching to an arbitrary program and patching its binaries remains dnSpy’s territory.
Specialised companions rather than replacements
de4dot
Written by the original dnSpy author, de4dot removes or reduces the effects of many .NET obfuscators: it renames symbols, decrypts strings and simplifies control flow. It is not a decompiler; you run it first and then open the cleaned assembly in dnSpy or ILSpy. The original project is archived, and it does not handle every modern obfuscator.
JustDecompile
Telerik’s JustDecompile was a free decompiler that was later open-sourced. It still works for basic browsing, but development has largely stopped, so newer C# constructs may decompile poorly.
dnlib, Mono.Cecil and Harmony
If what you really need is automated patching, libraries are a better fit than any GUI. dnlib (used by dnSpy) and Mono.Cecil read and write assemblies programmatically. Harmony patches methods at runtime without changing files on disk and is widely used for game mods.
Side-by-side comparison
| Tool | Decompile | Standalone debugger | Edit & save | Platforms | Licence |
|---|---|---|---|---|---|
| dnSpy 6.1.8 | Yes | Yes | Yes | Windows | GPLv3, archived |
| dnSpyEx | Yes | Yes | Yes | Windows | GPLv3, maintained |
| ILSpy | Yes | No | No | Windows GUI; CLI and VS Code everywhere | MIT |
| dotPeek | Yes | No (symbol server) | No | Windows | Free, proprietary |
| .NET Reflector | Yes | Via Visual Studio | Add-ins only | Windows | Commercial |
| Rider | Yes | Own projects | No | Windows, macOS, Linux | Commercial, free tiers |
| de4dot | No | No | Deobfuscates | Windows, .NET | GPLv3, archived |
Which alternative should you pick?
You want dnSpy, but maintained
Choose dnSpyEx. Your existing knowledge and shortcuts transfer directly.
You only read code and want the best output
Choose ILSpy. Keep dnSpy or dnSpyEx alongside it for the occasions when you need to debug or patch.
You debug your own app and step into libraries
Use the decompilation built into Visual Studio or Rider, or dotPeek’s symbol server. You stay inside your IDE with your normal debugging tools.
You are on macOS or Linux
Use Rider, the ILSpy VS Code extension or ilspycmd, and keep a Windows VM for the rare cases that need dnSpy’s debugger. The Linux guide describes the options in more detail.
You need to change binaries repeatedly or at scale
Script it with dnlib or Mono.Cecil, or use Harmony for runtime patches. Manual editing in a GUI does not scale well.
Your company requires vendor support
.NET Reflector or JetBrains tools come with commercial support and clear licensing terms that procurement teams understand.
Using several tools together
Experienced reverse engineers rarely rely on a single program. A common combination is ILSpy for reading, dnSpyEx for debugging and patching, de4dot for obfuscated samples, and a native disassembler such as Ghidra for code that is not IL at all. The tools share concepts, so moving between them is easy once you know one well. Comparing the output of two decompilers is also a good way to spot decompilation mistakes.
Frequently asked questions
Is ILSpy better than dnSpy?
For pure decompilation, current ILSpy releases often produce more modern C# than the archived dnSpy 6.1.8. For debugging and editing, dnSpy and dnSpyEx have no direct open-source equal.
Is there a cross-platform tool with a dnSpy-style debugger?
Not one that attaches to arbitrary processes and debugs decompiled code the same way. IDEs come closest for your own projects.
Can I still use the original dnSpy?
Yes. Version 6.1.8 remains available and works well with .NET Framework applications and older .NET versions. Very recent runtimes are better served by dnSpyEx.
Summary
The best dnSpy alternative depends on what you use dnSpy for. dnSpyEx is the natural continuation for the complete workflow. ILSpy is the reference open-source decompiler. dotPeek, .NET Reflector and modern IDEs are excellent when you debug your own code and step into libraries. And for scripted patching, libraries beat any GUI. Most people end up with a small toolbox rather than a single replacement, with a dnSpy edition kept close for the moments when only a source-free debugger will do.