XLS to HTML API - Convert XLS File to HTML with PDF.co

Why Extract XLS to HTML with Web API?

Preserves the Exact Format

Using the PDF.co API platform, you can turn your XLS file to HTML very easily while preserving the exact format as what it was in your XLS. You can turn an XLS to HTML with our Web API if you need to render the information very fast.

Support for Multiple Languages

PDF.co Web API supports many languages, so you can choose XLS to HTML Converter API in JavaScript, Python, Java, C#, PHP, .NET and ASP.NET, Visual Basic among other programming languages. The XLS to HTML source code is available for use, as long as you have your API key.


Our XML to HTML API is Secure

Data security is an important factor when managing client data. We use SSL to secure our API connection, and host the servers on Amazon’s AWS infrastructure, which makes ours the best XLS to HTML converter.

Web API Integrations for non-programmers

You can still convert XLS to HTML using the PDF.co API platform even if you’re not a programmer. We released a few integrations of our Web API and popular automation platforms. These integrations include Zapier and Integromat plugins, UiPath, and Blue Prism extensions. You can easily connect with commonly used applications via 300+ PDF.co API integrations.

Enterprise Solutions

For enterprise customers, there is a Dedicated API Server that runs as a dedicated private server with dedicated private cloud storage in the hosting region of your choice.

XLS to HTML API Sample & Demo

I’ll be using this sample XLS file below for this demo.

Screenshot of Sample XLS
Screenshot of Sample XLS

We’ll be using those different sample code snippets below for this demo. They can convert the Sample XLS File above into HTML.

The final result would look like this.

Screenshot of Output HTML
Screenshot of Output HTML

Before we proceed with the code. Let us first check the /v1/xls/convert/to/html parameters and its uses.


URL: https://api.pdf.co/v1/xls/convert/to/html
Method: POST
Parameter Description
url required. Link to the source file.
expiration optional. Output link expiration in minutes. Default is 60 (i.e. 60 minutes or 1 hour). After this delay generated output file(s) (if any) will be auto-removed from PDF.co temporary files storage. Max allowed expiration period depends on your current subscription plan. To store permanent input files (e.g. re-usable images, pdf, documents), please use PDF.co built-in Files Storage instead.
inline optional. Must be one of: true to return data as inline or false to return link to the output file (default).
worksheetIndex optional. index of the worksheet to use.
encrypt optional. Enable encryption for the output file: true or false
async optional. Runs processing asynchronously. Returns jobId to use with job/checktrue or false
name optional. Output file name.
profiles optional. Must be a String. Set custom configuration. See profiles examples here

Now we are ready to write some codes.

cURL Code Snippet

curl --location --request POST 'https://api.pdf.co/v1/xls/convert/to/html' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"url": "https://bytescout-com.s3-us-west-2.amazonaws.com/files/demo-files/cloud-api/other/Input.xls"

This sample code and other cURL source source code samples are available here.

Now let’s see this program in action.

Output HTML using cURL
Output HTML using cURL

The sample code for XLS to HTML in JavaScript is located here.