Convert Excel file to XLS, XLSX, ODS, CSV and HTML in Java

GemBox.Spreadsheet enables you to easily convert an Excel file to different file formats in Java. You can convert Excel file to a different spreadsheet format (XLSX, XLS, ODS, CSV, or HTML).

To do this, just load an Excel file and save it to another file format as in the following example. For more details about supported file formats in GemBox.Spreadsheet for Java, see Supported File Formats help page.

XLS converted from XLSX Excel file with GemBox.Spreadsheet
Screenshot of XLS converted from XLSX Excel file with GemBox.Spreadsheet
Upload your file (Drag file here)
import com.gembox.spreadsheet.*;

class Program {

    public static void main(String[] args) throws {
        // If using Professional version, put your serial key below.

        ExcelFile workbook = ExcelFile.load("%InputFileName%");

        // In order to achieve the conversion of a loaded Excel file to ODS,
        // or to some other Excel format,
        // we just need to save an ExcelFile object to desired output file format."Convert.%OutputFileType%");

Want more?

Next example GitHub

Check the next example or select an example from the menu. You can also download our examples from the GitHub.

Like it?

Download Buy

If you want to try the GemBox.Spreadsheet for Java yourself, you can download the free version. It delivers the same performance and set of features as the professional version, but with some operations limited. To remove the limitation, you need to purchase a license.