All tools
Free · Private · No upload

Convert Excel to PDF Online

Make a PDF of the data in an Excel sheet, without fiddling with Excel's page setup. The workbook is opened in your browser and never uploaded.

Drop a CSV or Excel file here

CSV · XLSX · XLS · XLSM · XLSB

or paste your data below

How to convert Excel to PDF

Three steps from invoice.xlsx to a PDF.

1. Drop the workbook

Drop an .xlsx, .xls, .xlsm or .xlsb file, or paste cells copied from Excel.

2. Check it in the grid

Delete helper columns and notes that shouldn't be printed. The PDF is drawn from the grid as it is.

3. Download PDF

Pick Portrait or Landscape and click Download PDF. data.pdf is generated in your browser.

Example: Excel in, PDF out

Invoice lines where Amount is =B2*C2.

invoice.xlsx, sheet "Lines" (the "Client" sheet is left out)
ABCD
1DescriptionQtyRateAmount
2Design work (hours)1265=B2*C2
3Hosting, 12 months1240=B3*C3
data.pdf (header row printed as the table head)
DescriptionQtyRateAmount
Design work (hours)1265780
Hosting, 12 months1240240

Amount prints the calculated 780 and 240. The PDF uses the converter's table style, not the workbook's: fonts, colours and column widths from Excel are not copied.

What changes between Excel and PDF

Page layout

The table is drawn on A4 pages, portrait or landscape. The header row (Description, Qty, Rate, Amount) is printed as a coloured table head and repeated at the top of every page; body rows are striped.

Fonts

The PDF uses the standard Helvetica font, which covers Western European characters. Text in other scripts (Cyrillic, Greek, Chinese, emoji) does not print correctly.

Formulas become results

The grid calculates formulas, so Amount gets the result (780), not the formula text (=B2*C2). Values are taken as the grid shows them, so check date and number columns there first.

When to convert Excel to PDF

Excel to PDF in JavaScript

TabularJS reads every sheet; the snippet picks one by name. Then jsPDF and jspdf-autotable, the libraries this page uses, draw the table.

import { writeFile } from 'node:fs/promises';
import tabularjs from 'tabularjs';
import { jsPDF } from 'jspdf';
import { applyPlugin } from 'jspdf-autotable';

const { worksheets } = await tabularjs('invoice.xlsx');
const sheet = worksheets.find((ws) => ws.worksheetName === 'Lines');
const [header, ...rows] = sheet.data; // Amount arrives as "=B2*C2"

applyPlugin(jsPDF); // adds doc.autoTable()
const doc = new jsPDF({ orientation: 'landscape' });
doc.autoTable({ head: [header], body: rows.map((row) => header.map((_, i) => String(row[i] ?? ''))) });
await writeFile('lines.pdf', Buffer.from(doc.output('arraybuffer')));

Unlike this page, TabularJS does not calculate formulas: Amount comes back as "=B2*C2". Dates arrive as serial numbers (45414 is 2024-05-02).

npm install tabularjs MIT licensed

Frequently asked questions

Can I export the whole workbook to one PDF?

No. Only the active sheet is printed. Make one PDF per tab, or use Excel's own Export to PDF if you need every sheet with its formatting.

Does the PDF follow Excel's print area?

No. Print areas, page breaks and headers or footers set in Excel aren't used. The sheet in the grid is printed as one table.

Does it work with .xlsm files that contain macros?

Yes. The data is read and the macros are ignored; they are never run.

What if my table is too wide for the page?

Switch Orientation to Landscape, which gives about 40% more width. If it is still cramped, delete columns you don't need in the grid; long values wrap within their column.

Does invoice.xlsx get uploaded when I convert it to PDF?

No. The workbook is opened in your browser and never uploaded.