# XLSX HTML Table Preview

Render an Excel range to HTML table for web preview with merged cells and basic background colors

> Canonical page: https://elysiatools.com/en/tools/xlsx-html-table-preview

- **Category:** Format Conversion

- **Keywords:** xlsx, excel, html, table, preview, merge

## Overview

Generate an HTML table preview from Excel.

- Preserves merged cells via rowspan/colspan
- Reads basic cell background color when available
- Exports standalone HTML file for browser preview

## Inputs

- **Excel File** (file)
- **Sheet Name** (text): Sheet1
- **A1 Range** (text): A1:F40
- **Header Row** (number)
- **Include Basic Styles** (checkbox)

## When to use

- When you need to display Excel data on a webpage without losing cell formatting.
- When you want to share a read-only preview of a spreadsheet range with colleagues.
- When you need to quickly generate HTML code from a specific worksheet or range.

## How it works

- Upload your Excel file and specify the target sheet name and cell range.
- Define the header row to ensure your table structure is correctly identified.
- Toggle the style option to include or exclude original background colors.
- Generate and download the standalone HTML file for immediate use.

## Use cases

- Embedding product price lists or inventory tables directly into a company website.
- Creating quick, readable web previews of financial reports for internal dashboards.
- Converting static Excel data into accessible HTML tables for technical documentation.

## Frequently asked questions

### Does this tool support merged cells?

Yes, the tool automatically detects merged cells in your Excel file and converts them into equivalent rowspan and colspan attributes in the HTML table.

### Can I convert only a specific part of my spreadsheet?

Yes, you can define a specific range (e.g., A1:F40) to convert only the relevant portion of your data.

### Are cell background colors preserved?

Yes, if the 'Include Basic Styles' option is enabled, the tool will extract and apply the background colors from your Excel cells to the HTML output.

### What file formats are supported?

The tool supports standard Excel formats, including .xlsx and .xls files.

### Is the output file ready for web use?

Yes, the tool generates a standalone HTML file that can be opened in any browser or embedded into your existing web projects.

## Related tools

- [Excel to HTML Table Converter](https://elysiatools.com/en/tools/excel-to-html): Convert Excel file to HTML table format, extracting data from the first worksheet
- [XLSX Conditional Formatting Rule](https://elysiatools.com/en/tools/xlsx-conditional-formatting-rule): Batch-apply conditional formatting rules such as threshold highlights, data bars, and color scales to Excel worksheets
- [XLSX CSV Batch Converter](https://elysiatools.com/en/tools/xlsx-csv-batch-converter): Batch convert CSV/TSV to XLSX or convert XLSX back to CSV/TSV with delimiter and encoding handling
- [XLSX Dedicated Index Sheet](https://elysiatools.com/en/tools/xlsx-dedicated-index-sheet): Generate an index sheet for workbook with links to each sheet and core statistics
- [XLSX JSON Transformer](https://elysiatools.com/en/tools/xlsx-json-transformer): Bidirectional conversion between JSON arrays and Excel sheets, with nested object flattening and restoration
- [XLSX Markdown Table Exporter](https://elysiatools.com/en/tools/xlsx-markdown-table-exporter): Convert a selected Excel range or whole sheet into Markdown table format
- [XLSX Parquet Exporter](https://elysiatools.com/en/tools/xlsx-parquet-exporter): Export worksheet data to Parquet and/or NDJSON for data lake and data warehouse pipelines
- [XLSX Print Setup Pack](https://elysiatools.com/en/tools/xlsx-print-setup-pack): Apply paper, margins, scaling, repeating titles, and header/footer print settings to Excel workbooks in one pass

## Samples

- [XLSX Samples](https://elysiatools.com/en/samples/xlsx-samples): Sample XLSX spreadsheets for worksheet parsing and data extraction testing
- [XLS Samples](https://elysiatools.com/en/samples/xls-samples): Sample legacy Excel (XLS) files for binary spreadsheet parsing and import tests
- [HTML Viewer Samples](https://elysiatools.com/en/samples/html-viewer-samples): Sample HTML files (semantic page, form, landing page) for the in-browser HTML Viewer
- [HTML with Images Samples](https://elysiatools.com/en/samples/html-with-images): HTML source code samples with images for testing extraction
