Convert CSV to PDF

Turn comma-separated data into a readable table.

Drop your CSV file hereor click to choose — up to 50 MB free

This tool reads a CSV file and prints it as a ruled table: one column per field, the first row as a header that repeats at the top of every page, long values wrapped inside their cell and numbers aligned to the right. The separator and the text encoding are detected from the file. Use it to hand an export to someone who wants to read the data, not open it in a spreadsheet.

How to use it

  1. Drop your .csv file on the page, or click to choose it.
  2. Click Convert to PDF.
  3. Download the PDF and check the first and last pages.
  4. If the table is too wide to read comfortably, remove columns you do not need in the CSV and convert again.

How the file is read

Nothing about the file has to be set by hand.

  • Separator: comma, semicolon or tab, whichever appears the same number of times on each of the first lines.
  • Quotes: a value in double quotes may contain the separator and line breaks; a doubled quote stands for one quote character.
  • Encoding: UTF-8, with or without a byte-order mark, or UTF-16 with its byte-order mark, which is what Excel calls Unicode Text. A file that is none of these is read as Windows-1252, which is what Excel on Windows saves as plain CSV.
  • Blank lines are skipped. A row with fewer values than the widest row is padded with empty cells.

How the table is laid out

The first row is treated as the header: it is printed in bold on a shaded band and repeated on each page, and it is tagged as a header row for screen readers. If your file has no header, its first record is what gets that treatment.

Pages are A4. A table of up to six columns is printed upright in 10 point type; from seven columns the page turns to landscape and the type gets smaller as columns are added, down to 6 point beyond twenty columns. Columns take their width from their contents, and text that does not fit wraps inside its cell, so nothing is cut off at the page edge. A row is never split across two pages.

Values are printed exactly as they are in the file. Leading zeros, long identifiers and dates are not reformatted, and a value that starts with an equals sign is printed as text, not calculated.

Limits, and when to use a spreadsheet instead

A table may have up to 400,000 cells, counted as rows times columns; larger files are refused with a suggestion to split them. A UTF-16 file without a byte-order mark cannot be told from binary data and is refused: export it again as CSV UTF-8.

There are no settings for paper size, fonts, column widths or totals. For that control, convert the CSV to a workbook, format it in your spreadsheet program, and print it with Excel to PDF.

Questions

How do I fit a wide CSV on one page?

Wide tables are handled for you up to a point: the page turns to landscape from seven columns and the type shrinks as columns are added. Past twenty or so columns the text becomes small, and removing columns you do not need is the better fix.

Does it work with semicolon or tab separated files?

Yes. The separator is detected from the first lines of the file, so a semicolon export from a European system or a tab separated file prints as the same table a comma file would.

Are numbers or dates changed during conversion?

No. Each value is printed character for character as it appears in the file. Numbers are aligned to the right of their column, and that is the only thing done to them.

My file has no header row. What happens?

The first record is printed as the header: bold, shaded and repeated on every page. Add a header line to the CSV before converting if that is not what you want.

Why do accented characters look wrong?

The file is in an encoding other than UTF-8, UTF-16 or Windows-1252, the ones that are recognised. Open it in a text editor, save it as UTF-8, and convert the new copy.

Is my data kept?

The CSV and the PDF are deleted automatically within one hour, and the conversion runs on a server that cannot reach the internet.