HOSTING

Share an Excel sheet as a web page

An .xlsx attachment needs Excel or a sign-in to open on a phone. Turn the sheet into an HTML table with a few lines of Python, upload it, and send a link that opens in any browser, read-only.

4 min read·

Sending a workbook means the reader needs a spreadsheet app, gets an editable copy, and may see every tab, including the ones you meant to keep to yourself. When they only need to read the numbers, an HTML page is simpler: it opens in a browser, shows only the sheet you chose, and cannot be edited by the reader.

Read the sheet with pandas

  • ✓pip install pandas openpyxl. pandas uses openpyxl to read .xlsx files.
  • ✓df = pandas.read_excel("report.xlsx", sheet_name="Q3") reads one tab. Leave out sheet_name and you get the first tab; sheet_name=None returns every tab as a dictionary keyed by tab name.
  • ✓Formula cells come through as the value Excel last saved. A workbook written by a script and never opened and saved in Excel has no saved values, so its formula cells come out empty (tested on pandas 3.1.1 with openpyxl 3.1.5). Open and save it in Excel first.

Write the HTML table

  • ✓html = df.to_html(index=False, na_rep="") drops the row numbers pandas adds and shows empty cells as blank instead of NaN.
  • ✓The output is a <table> only: no <html>, <head> or charset line. Wrap it with <!doctype html><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"> and a <style> block, then write it to report.html.
  • ✓Excel formatting such as fills, fonts and number formats is not carried over. Pass float_format="{:,.2f}".format to to_html for thousands separators and two decimals; it leaves blank cells blank. Style the table in the <style> block.
  • ✓For several tabs, loop over the dictionary from sheet_name=None and write an <h2> with the tab name above each table, all in one file.

Upload it and send the link

Drag report.html onto the FileShare Pro dashboard and copy the link. Viewers need no account and nothing to install, and the page works on a phone. Shared pages carry a noindex tag, so a finance sheet does not show up in search results. On Pro you can add a password: password-protecting an HTML page.

Turn on comments and readers can leave a note on the page after typing a name, which keeps questions about a figure next to the figure. The view count shows whether the person you sent it to has opened it.

More options for the table itself, including the Styler for colored cells: sharing a pandas DataFrame as a web page.

Update the numbers without a new link

When the workbook changes, run the script again and upload the new HTML over the old file. The link stays the same and the previous version is kept in history: updating a shared link without changing it.

Frequently asked

How do I share an Excel sheet as a link without Excel?

Read the sheet with pandas.read_excel, write it with to_html(index=False), add a charset line, upload the HTML file to FileShare Pro and send the link. It opens in any browser.

Why are my formula cells empty?

pandas reads the value Excel last saved for each formula. A workbook created by a script and never saved in Excel has no saved values. Open and save it in Excel, then convert it again.

Can I share only one tab?

Yes. Pass sheet_name="TabName" to read_excel and only that tab goes into the HTML file. The other tabs are never uploaded.

Can readers edit the numbers?

No. The shared page is a read-only HTML table. Readers can leave comments if you turn them on.

Is it free?

Yes. The free plan hosts up to 50 files of up to 100 MB each, with view counts and comments included. Password-protected links are on Pro.

Got a page to share?

Drop the file, copy the link — live in seconds, free plan included.

Start sharing free