ConfuserEx Deobfuscator
Deobfuscate and clean ConfuserEx-obfuscated C# and .NET code online. Decode unicode/hex escapes, remove string encryption stubs, and restore indentation. Runs in your browser.
Input
Deobfuscated Output
What Is the ConfuserEx Deobfuscator?
The ConfuserEx Deobfuscator reverses common obfuscation patterns applied by ConfuserEx, a popular open-source .NET code protector. Paste obfuscated or decompiled C# code and get more readable output for analysis and debugging.
Everything happens in the page, which matters when the assembly belongs to a client or is a malware sample: nothing you paste is uploaded. The work is text-level. \uXXXX and two-digit \xXX escapes are decoded, calls shaped like .Invoke(null, new object[] {...}) or Module.ResolveString(42) are wrapped in comments tagged as ConfuserEx stubs, and the code is re-indented four spaces per brace, with one statement per line. Semicolons inside strings, comments and for (...; ...; ...) headers are left where they are, and blank lines are dropped. Control-flow flattening and runtime string decryption need a tool that rewrites the assembly itself, such as de4dot.
How to Use This Tool
Paste or Upload
Paste the C# you got out of dnSpy or ILSpy into the left panel, or Upload a .cs, .txt or .il file. Sample loads a small licence-check program whose class name, method name and message are all spelled as \u escapes.
View Deobfuscated Output
The right panel shows cleaned and formatted C# code. Unicode and hex escapes are decoded, string encryption stubs are flagged, and indentation is restored.
Copy or Download
Copy the cleaned C# into your IDE, or Download it as a .cs file to keep alongside the assembly you are investigating.
ConfuserEx Deobfuscator Examples
Identifiers spelled out as \u escapes are what this page undoes best. Here a licence check comes back readable:
Example: Unicode Escape Obfuscation
Obfuscated input:
Deobfuscated output:
When the ConfuserEx Deobfuscator Helps
ConfuserEx is widely used to protect .NET applications from reverse engineering. You may encounter it when: analyzing third-party .NET libraries, performing security research on Windows software, studying malware samples, or reviewing decompiled code from tools like ILSpy or dnSpy. This tool handles the text-level obfuscation patterns automatically.
Frequently Asked Questions
Can this tool fully reverse ConfuserEx obfuscation?
ConfuserEx applies multiple protection layers including control flow obfuscation, anti-tamper, and string encryption. This tool handles simpler patterns like unicode/hex escape decoding and code formatting. Full reversal of control flow and runtime encryption requires tools like de4dot.
Is my C# code sent to a server?
No. The escape decoding and re-indenting are plain string replacements running in this tab, so a decompiled licence check or a sample you are picking apart stays on your machine.
What .NET obfuscation patterns does this tool handle?
It decodes unicode (\uXXXX) and hex (\xXX) escapes, comments out .Invoke(null, new object[]{...}) and ResolveString(n) calls as likely decryption stubs, puts one statement on each line, re-indents by four spaces and drops blank lines.
What is the difference between this tool and de4dot?
de4dot is a command-line .NET deobfuscator that rewrites the assembly binary. This browser tool works on C# source or decompiled code as text, handling readable obfuscation patterns without requiring you to install anything.
Can I use this for other .NET obfuscators like Dotfuscator or SmartAssembly?
Yes. The unicode/hex escape decoding and indentation restoration work on any obfuscated C# code, regardless of the obfuscator used. ConfuserEx-specific stub patterns may not match other obfuscators.
Related Deobfuscation Tools
If you are new to the protector itself, the ConfuserEx wiki lists each protection it can apply, which helps you tell what this page can undo from what needs de4dot.