Convert CSV to PDF in your browser
A CSV file is easy to export and awkward to share with people who just want to read it. This CSV to PDF converter turns rows and columns into a paginated table that prints well and opens on any device. The file is parsed and the PDF is built in your browser, so your data is not uploaded.
What the PDF table looks like
- Header row: bold on a grey background and, by default, repeated at the top of every page, so page 7 still tells you which column is which.
- Fitted columns: widths follow the content. When the table is too wide for the page, narrow columns such as IDs keep their natural width and the widest columns share the remaining space, wrapping their text onto several lines. A word longer than its column is broken rather than cut off.
- Zebra rows and grid lines: light shading on every other row and thin cell borders, both optional.
- Numbers aligned right: a column where at least 80% of the filled cells look like numbers, including amounts such as $3,480.00, is right-aligned so the digits line up.
- Page numbers: “Page 3 of 12” centred at the bottom of each page.
- Title: optional text at the top of page 1, also saved as the PDF document title.
Example
region,product,units,revenue
North,"Desk lamp, LED",120,"$3,480.00"
South,Monitor arm,45,"$2,025.00"“Desk lamp, LED” stays in one cell even though it contains a comma, because it is quoted. The units and revenue columns hold numbers, so they are right-aligned in the PDF.
Page size and orientation
Choose A4, US Letter or US Legal. With orientation set to Auto, the converter measures how wide each column wants to be and switches to landscape when the table does not fit the width of a portrait page. Pages have half-inch margins, and the font size can be set from 6 to 14 points. For very wide tables, landscape Legal gives the most room: 1008 points across instead of 595 for portrait A4.
How the CSV is read
- The delimiter is detected automatically (comma, semicolon, tab or pipe), or you can set it yourself.
- Quoted fields may contain delimiters, doubled quotes ("") and line breaks; a line break inside a cell becomes a new line in that cell.
- A UTF-8 byte order mark is removed. A file that is not valid UTF-8, such as an older Excel export, is read as Windows-1252, so accented letters survive.
- Blank lines are skipped, and rows shorter than the widest row get empty cells.
Characters the PDF fonts cannot show
The PDF is written with the standard Helvetica fonts that every PDF reader has built in, which keeps files small. Those fonts cover Western European Latin text, including accented letters, the euro sign and typographic quotes, but not Chinese, Japanese, Korean, Arabic, Hebrew, Indic scripts, Cyrillic, Greek or emoji. The tool tells you before you create the PDF when your data contains such characters, and replaces them instead of failing: letters with accents from other alphabets lose the accent (ő becomes o), ₹ becomes Rs, ≤ becomes <=, and anything else becomes a question mark. For tables in those scripts, convert the file with CSV to Excel and print to PDF from your spreadsheet program, which embeds the fonts it needs.
Tips
- Check the data first in the CSV viewer and remove columns you do not need: fewer columns means wider ones and less wrapping.
- Lower the font size to 7 or 8 points to fit more columns on a page.
- To add the table to a report, combine it with other documents using Merge PDF.