Convert CSV to PDF

Converting CSV to PDF lays the rows out as a table across as many pages as they need, which turns a data export into something a person can read, file or print. How well it works depends almost entirely on width: under about ten columns it is fine, and beyond that you are better off exporting from a spreadsheet in landscape.

  • Where it runs On our server, because a browser cannot run the software this needs.
  • Rebuilt PDF works differently from a CSV, so this is not the gradual degradation a lossy codec applies. What PDF can express is reproduced faithfully; what it has no equivalent for does not survive at all.
  • File size limit Up to 25 MB per file, free, without an account.
  • Worth knowing Layout is reproduced with metric-compatible substitute fonts. Macros, comments and tracked changes are not carried over.

Up to 100 files at once. Mixed formats are fine.

Why turn data into a document at all

CSV is not really a document format. It is the plainest possible way to hand a table from one program to another: values, commas, line breaks, no fonts, no column widths, no page. Which is exactly why it is everywhere — every database, accounting package and analytics tool will export one — and exactly why turning it into a PDF is less straightforward than it sounds.

The reason people want it anyway is usually that a human has to look at the thing. A report needs the underlying figures attached. A grant application wants the data as a document. Someone has asked for a printout. In all of those cases the recipient is going to read the table, not open it in a spreadsheet, and PDF is the format that reads the same everywhere.

Wide tables are the thing to check first

This is the single most common disappointment. A CSV has no page width — a row can be five columns or eighty and the file does not care. A PDF page is a fixed size. So a wide export either gets scaled down until the text is too small to read, or runs off the edge and loses columns entirely.

If your table has more than about ten columns, the honest advice is to open it in a spreadsheet first, set the page to landscape, use scale-to-fit, and export the PDF from there. You will get a far better result than any automatic conversion can give you, and it takes a minute.

Narrow tables convert cleanly

For a summary, a short list or a few columns of figures, this conversion does the job with no fuss. The rows are laid out as a table across as many pages as they need, with a readable default typeface, and the result is something you can attach to an email without apologising for it.

Watch what happens to identifiers

A CSV holds text, and the converter has to decide what each value means: is `007` the number seven or a product code? Is `03/04` a date, and in which order? Interpretation usually matches expectation, but identifiers with leading zeros are the classic casualty. If your table contains part numbers, postcodes or account references, check them in the output.

When XLSX is the better target

If the person receiving this is going to work with the data rather than read it, PDF is the wrong format and XLSX is the right one — it is one click away on this site, it keeps everything as data, and it runs in your browser. PDF is for when the table is being read, filed or printed.

This conversion runs on our server, because laying a table onto pages means running LibreOffice. The file is uploaded over an encrypted connection and deleted as soon as the job finishes. Converting a CSV to JSON, XLSX or TSV happens entirely in your browser with no upload at all.

What happens to the numbers on the way in

A CSV has no types — every field is text until something decides otherwise — and the something is LibreOffice’s text import, which runs before anything is laid out. So the page shows the result of its decisions rather than the characters you wrote, and that is where the leading zeros described above go.

Those decisions are not adjustable from here: a conversion takes the import defaults and there is no control on this page to change them. Where the presentation matters as much as the content, convert the CSV to XLSX first, set the column formats there and print that. It is one extra step, and it is the only way to be sure a reference number reaches the document in the form it left the export.

How to turn a CSV export into a PDF

  1. Drop your CSV onto this page, or click to choose one.
  2. It is laid out as a table and rendered to pages by LibreOffice.
  3. Download the PDF. Your original is deleted as soon as the job finishes.

CSV vs PDF: data for a machine, a document for a person

CSV compared with PDF
CSVPDF
Full nameComma-Separated ValuesPortable Document Format
File extension.csv.pdf
Media typetext/csvapplication/pdf
CompressionEither, depending on the setting
First published19721993
Published byAdobe
SpecificationRFC 4180ISO 32000-2
LicensingOpen standardOpen standard
Standing todayCurrentCurrent
Colour it can describeRGB, CMYK, greyscale
Opens in a browserNo browserEvery browser
Considered insteadXLSX, JSON, ParquetDOCX, HTML

Opening the result

PDF opens in every current browser. CSV has narrower browser support than that. If the file is going onto a web page or into a form, that is usually the whole reason for the conversion.

The usual programs do not overlap: CSV opens in Microsoft Excel, LibreOffice Calc and pandas, PDF in Adobe Acrobat, Preview and LibreOffice Draw — so whoever receives the result needs something from the second list.

What each format is for

The two are aimed at different work: CSV at moving data between programs, PDF at handing a finished file over, print and archiving. That is worth weighing before converting, because the reason one exists is usually the reason the other is awkward.

CSV was published in 1972. The specification is RFC 4180, and it is worth reading if the file has to outlive the tool that wrote it.

PDF comes from Adobe and dates from 1993, specified as ISO 32000-2. Adobe Acrobat, Preview and LibreOffice Draw all read it.

CSV was published in 1972 and PDF in 1993. The older one is generally the safer file to hand to somebody; the newer one usually does the job in fewer bytes.

CSV to PDF: width, formatting and data types

Are my CSV files uploaded anywhere?

Yes — this conversion needs software that cannot run in a browser, so the file is uploaded over an encrypted connection. It is deleted as soon as the job finishes, and the result is sent straight back to you without being stored. The work is done by LibreOffice, the full office suite, running headless.

What happens if my table has too many columns?

It is the main thing to expect. A CSV has no page width, and a PDF page does — so a table with thirty columns either shrinks to an unreadable size or runs off the edge. For anything wide, open it in a spreadsheet first, set landscape and a scale-to-fit, then export from there.

Can I control the column widths or fonts?

No. A CSV carries no formatting at all — just values separated by commas — so there is nothing to preserve and nothing to adjust. If you need the table to look a particular way, that formatting has to be applied in a spreadsheet before it becomes a PDF.

Are numbers formatted as numbers?

They are interpreted as the converter reads them, which usually matches expectations and occasionally does not — long product codes with leading zeros are the classic case, and they can lose the zeros. Check anything that looks like an identifier rather than a quantity.

Would XLSX be a better target than PDF?

If a person needs to work with the data, yes, and it is one click away. PDF is for when the table is being read or filed rather than used.

Does the file get uploaded?

For this one, yes. The layout is produced by LibreOffice on our server; the file is deleted as soon as the job finishes. Converting a CSV to JSON or XLSX happens in your browser with no upload.

More about these formats

Where these figures come from

The claims this page makes about CSV and PDF are checkable, and these are the documents that settle them.