Excel application is used to format, organize and calculate data in a spreadsheet program quickly and easily. HTML or Hypertext Markup Language is the standard markup language for Web pages. It provides the content that gives web pages structure by using different elements and tags. Excel to HTML conversion could be useful in various scenarios such as converting sheets to web pages or embedding the content of the sheets within the web applications and so on. In this article, you will learn how to convert Excel XLS/XLSX to HTML using REST API in Node.js.
The following topics shall be covered in this article:
- Excel XLS/XLSX to HTML Conversion REST API and Node.js SDK
- How to Convert Excel to HTML file using REST API in Node.js
Excel XLS/XLSX to HTML Conversion REST API and Node.js SDK
You can install GroupDocs.Conversion Cloud to your Node.js application using the following command in the console:
npm install groupdocs-conversion-cloud
Please get your Client ID and Client Secret from the dashboard before you start following the steps and available code examples. Once you have your ID and secret, please add in the code as shown below:
How to Convert Excel to HTML file using REST API in Node.js
Upload the XLSX File
Firstly, upload the excel file to the cloud using the following code sample:
As a result, the uploaded Excel file will be available in the files section of your dashboard on the cloud.
Convert XLSX to HTML format in Node.js
- Create an instance of the ConvertApi
- Create an instance of the ConvertSettings
- Set storage name and the input excel file path
- Assign “html” to the format
- Now, provide the output html file path
- Create ConvertDocumentRequest with ConvertSettings
- Convert by calling the convertDocument() method with ConvertDocumentRequest
The following code example shows how to convert Excel to HTML in Nodejs using REST API:
Input Excel File:
Resultant HTML File:
Download the Converted File
The above code sample will save the converted html file on the cloud. Now you know how to convert Excel to HTML in node.js. Next, download html file using the following code sample:
Free Excel to HTML Converter Online
Excel and HTML files are widely used to store and transmit the data. In accordance with that, this article covered how to turn XLSX into HTML in Node.js applications. Now you know:
- how to convert XLS to HTML using Node.js;
- programmatically upload and download converted HTML file;
- Excel to HTML converter online free;
Furthermore, you can learn more about GroupDocs.Conversion Cloud API using the documentation. We also provide an API Reference section that lets you visualize and interact with our APIs directly through the browser.
Finally, groupdocs.cloud is writing interesting new blog posts. So, please stay in touch for regular updates.
Ask a question
You can ask your queries about how to convert Excel Sheet to HTML, via our Free Support Forum
How do I convert Excel data to HTML in Node.js?
Please follow this link to learn the Node.js code snippet for how to convert Excel file to HTML quickly and easily.
How to save Excel as HTML free online?
Excel spreadsheet to HTML converter online free allows you to export Excel to HTML format, quickly and easily. Once the conversion is completed, you can download the HTML webpage online.
How do I convert XLSX to HTML online free?
- Open online Excel to HTML converter free
- Click inside the file drop area to upload Excel sheet or drag & drop Excel file.
- Click on Convert Now button, online XLSX to HTML converter will turn Excel into HTML table.
- Download link of output file will be available instantly after converting convert Excel to HTML online.
How to install convert Excel to HTML code library?
How do I convert Excel to Web Page in windows?
Please visit this link to download Excel to HTML table converter. This offline converter can be used to turn an excel spreadsheet into a web page in windows with a single click.
- Convert PDF to Editable Word Document using Node.js
- Convert Excel Spreadsheets to PDF in Node.js
- How to Convert JPG to PDF using Node.js
- Convert Excel to XML and XML to Excel Online using Node.js
- How to Convert PowerPoint PPT/PPTX to PNG in Node.js
- Convert EXCEL to JSON and JSON to EXCEL in Node.js
- How to Convert CSV to JSON File Online in Node.js
- How to Convert PDF to HTML Online in Node.js
- Convert EXCEL to JSON and JSON to EXCEL in Python
- Python SVG to PNG or PNG to SVG Python Conversion
- How to Convert CSV to JSON and JSON to CSV in Python
- Convert PowerPoint PPT/PPTX to JPG/JPEG Images in Python
- Convert Word Documents to PDF using REST API in Python
- How to Convert PDF to Excel in Python using REST API