CFR
benf.org
- Free plan
- Windows
- macOS
- Linux
- API
- Self-hosted
What CFR is
CFR is a Java decompiler that turns Java class files into Java source. It can work with named class files, classes found on a classpath, or an entire JAR supplied by path. Its maker says it handles many modern Java features, including much of Java 9, 12, and 14. CFR can also attempt to decompile class files from other JVM languages, though the result is Java source rather than the original language. The command-line tool can place output in a chosen directory with `--outputdir`; command-line options or an options file let users customize decompilation. CFR is written in Java 6, and its maker says it runs anywhere Java 6 runs. It is available as a downloadable JAR, through Maven, and from the GitHub repository. The FAQ notes an API as of version 0.135, and the project repository identifies the license as MIT. CFR is free, with no paid plans or usage limits stated. Its maker notes that some edge cases can produce poor results, and it does not decompile native code.
Who it suits
CFR suits developers who need to inspect Java bytecode or try to recover readable Java source, including from JARs. It may also help with other JVM-language class files when Java output is acceptable.
Good to know, and what to watch
- Handles many features from modern Java versions
- Processes class files, classpaths, or whole JARs
- Offers command-line and options-file configuration
- Free, with no stated usage limits
- API available as of version 0.135
- Does not decompile native code
- Other JVM languages are output as Java
- Some edge cases produce poor results
Plans
Every plan and priceFree
Free plan
The verdict
CFR offers a free way to decompile Java class files, with command-line options for different inputs and output needs. Expect uneven results for some inputs, and Java output when working with other JVM languages.
What the maker publishes
- API
- The FAQ states that CFR has an API as of version 0.135. source
- Configuration
- Decompilation can be customized with command-line options or an options file. source
- Distribution
- CFR is available as a downloadable JAR, through Maven, and from the GitHub repository. source
- Java support
- The maker says CFR can decompile modern Java features, including much of Java 9, 12, and 14. source
- JVM languages
- CFR can also attempt to turn class files from other JVM languages back into Java. source
- Known limitation
- The maker says CFR has edge cases and may produce poor results for some inputs. source
- License
- The maker’s FAQ directs users to the project README for its license; the project repository identifies the license as MIT. source
- Output
- The command-line tool can emit decompiled files to a specified output directory using --outputdir. source
- Output language
- For class files from other JVM languages, CFR generates Java output rather than the original language. source
- Purpose
- CFR is a Java decompiler that converts Java class files back into Java source. source
- Runtime
- CFR is written in Java 6 and the maker says it will work anywhere Java 6 runs. source
- Support
- The maker invites users to email reports of problems and directs bug reports to the GitHub issue tracker. source
- Support limitation
- The maker asks users not to submit class files they do not own the copyright to. source
- Usage
- CFR can decompile named class files or classes on a classpath, and can process an entire JAR by providing its path. source
Checked against the maker's pages on 8 Oct 2026.