Click the "Select File" button above, and choose your CLASS file.
You’ll see a preview, if available.
Click the "Convert file to..." button to extract text information.
Convert CLASS to another file type
To convert your CLASS file to another format, you need Java Runtime Environment or other Developer software.
Convert a file to CLASS
To convert other file formats to the "Compiled Source Code" file type, you need software like Java Runtime Environment or a similar tool.
About CLASS files
A .class file is a compiled binary file created by the Java Compiler (javac). It contains bytecode instructions that the Java Virtual Machine (JVM) executes to run cross-platform applications. Unlike human-readable source code, these files are machine-optimized and binary-encoded.
Common Challenges & Conversion Needs: Users frequently struggle with .class files because they are not human-readable in standard text editors like Notepad++. If the original source code is lost, or if you are debugging version conflicts (e.g., UnsupportedClassVersionError), the binary format is a black box. Additionally, running a standalone .class file requires precise knowledge of the package structure and classpath, often leading to "Could not find or load main class" errors.
Recommended Conversion Targets:
For Code Recovery & Editing: Convert to JAVA. This process (decompilation) reconstructs the original high-level source code, allowing you to read logic or restore lost projects.
For Low-Level Analysis: Convert to TXT. This reveals the bytecode disassembly (opcodes), useful for understanding compiler optimizations or verifying binary compatibility.
For Distribution: Bundle into a JAR file. Sending loose class files is prone to corruption and path errors; archives are the standard for deployment.
Convert.Guru analyzes your CLASS file, detects the exact format, and lets you read the text inside.
If you want to convert CLASS file to JSON, JS, TS, PY, JAVA, CPP, C, CS, PHP, RB, GO or RS, you can use Java Runtime Environment or similar software from the "Compiled Java Bytecode" category. In the File menu, look for Save As… or Export….
To convert SH, PY, KT, PS1, SWIFT, LUA, PL, JAVA, SCALA, JS, VBS or TS files to CLASS, try Java Runtime Environment or another comparable tool in the "Compiled Java Bytecode" category.
The CLASS Converter Story
The history of Convert.Guru began over 25 years ago in California with Tom Simondi’s file-format database. A former contributor to Space Shuttle development and a software pioneer of the 1980s, Simondi established a trusted resource for file type analysis that was even referenced by Microsoft Windows XP. Today, we use modern technology to process and convert thousands of file formats while continually improving our CLASS converter.