Convert CSV to PDF

A CSV holds values and separators, so no converter can lay it out without decisions about column widths, paper and a header row. Excel to PDF reads .xlsx and .xls, not .csv. Open the CSV in a spreadsheet app, set the widths and the page setup, save it as .xlsx, then convert it in this browser tab, where the PDF is reopened and compared before it downloads.

Excel to PDF

How to convert CSV to PDF

  1. Open the CSV in a spreadsheet

    Open the .csv in Excel, Numbers, LibreOffice Calc or Google Sheets. Check that the columns split at the right separator and that dates, leading zeros and accented characters read correctly.

  2. Set the widths and the page

    Widen each column until no cell shows hash marks, set the header row to repeat on every page, and set paper, orientation and margins in the page setup.

  3. Save a copy as .xlsx

    Keep the .csv as the data file and save the laid-out sheet as .xlsx. The workbook is what carries the widths and the page setup the converter reads.

  4. Convert and check

    Open Excel to PDF, drop the .xlsx on the page, choose the scale, read the page count, then convert. The finished PDF is reopened and its cell text compared before the download appears.

Why a CSV file to PDF converter needs a spreadsheet in between

A .csv is text: one record per line, one separator between values, and nothing about how any of it should look. There is no column width, no font, no paper size, no row marked as the header, no number format. A PDF is the opposite, a fixed drawing of pages. To convert CSV to PDF, something has to decide where every column ends, which paper the rows go on and what happens when the table is wider than the page. That something is a spreadsheet.

Excel to PDF reads a .xlsx or .xls workbook in this browser tab, draws the cells at a page setup you choose, and reopens the finished PDF to compare the cell text before the download appears. It does not read .csv, and that is deliberate: a workbook carries the widths, the formats and the print area, and a CSV carries none of them. So the route is two moves, a spreadsheet app to give the data a layout, then the converter to turn that layout into pages. Nothing is uploaded at either step. The spreadsheet app runs on your machine and the converter runs in the tab.

Any spreadsheet app does the first move. Excel, Numbers, LibreOffice Calc and Google Sheets all open a .csv and all save a .xlsx. Google Sheets needs the file placed in Drive first, so it is the one to skip when the data is confidential. The other three read the file from disk.

The one plain-text format that does print without a spreadsheet is Markdown, because its table syntax carries the column layout with it. Convert Markdown to PDF covers that path.

Separators, encodings and leading zeros

The separator is the first thing to check. A file named .csv is not always comma separated. Excel in many European locales writes a semicolon, because the comma is the decimal mark there, and some exports use a tab. If the whole row lands in column A, the separator guess is wrong. In Excel, Data, then From Text/CSV, lets you pick it. LibreOffice asks on open. Numbers and Google Sheets guess, and are usually right.

Encoding is the second. A CSV written as UTF-8 without a byte order mark opens as nonsense in older versions of Excel, with é and ü turned into pairs of symbols. Save the CSV as UTF-8 with BOM from the source, or pick UTF-8 in the import dialog, and the characters come back. Check one accented name before you go further, because the PDF carries whatever the sheet shows.

Leading zeros are the third. A postcode of 01234 or an account number that starts with zero is read as a number and becomes 1234. A twenty-digit identifier becomes 1.2E+19. Set those columns to Text in the import step, or format them as text before the paste, and re-check them. A zero lost at this point does not show in the PDF as an error, only as a wrong value.

Dates are the last. 03/04/2026 is 3 April in one locale and 4 March in another, and the app picks the one its region setting says. If the column matters, import it as text and leave the string as it was written.

Fitting a wide CSV on the page

Most CSV files are wide and long: a dozen or more columns and hundreds of rows. Left alone, a spreadsheet prints that as a strip of pages across and a stack of pages down, and the reader has to tape them together. Two settings fix it. In the sheet, set the print area to the columns that matter and set the header row to repeat on every page. In Excel to PDF, choose the scale that fits all columns to the page width, then read the page count under the preview. The first page is drawn at the current settings, so a change to the paper, orientation or scale redraws it before you convert. Landscape usually halves the page count for a wide table. Fit an Excel sheet on one PDF page covers the scale limits, and Convert Excel to PDF covers the rest of the workbook settings.

A CSV that is too wide even in landscape at the smallest readable scale is not a page problem. It is a column problem. Hide the columns nobody reads, or split the table into two sheets, before you convert.

Numbers stay numbers. The converter draws what the cell shows, so a currency format, a thousands separator or two decimal places set in the sheet appear in the PDF the same way. Set the format in the sheet, not by editing the CSV.

What the check proves, and the other direction

After the conversion, the PDF is reopened with a second reader, every page is rendered and the cell text is compared in order with the workbook. If a cell goes missing, the download does not appear and the tool says which page failed. The check proves the text reached the PDF. It does not prove your separator or encoding guess was right, which is why the three checks above happen in the sheet, where a wrong value is still a value you can see.

The other direction runs here too. PDF to CSV reads a native-text PDF, finds the tables on the page and writes one CSV per table, and Convert PDF to CSV explains what the detector needs. Note the asymmetry: PDF to CSV throws away the layout the sheet added, so a round trip returns the data and not the page.

The rest of the spreadsheet and document guides are under PDF, Word and Excel help.

Questions people ask

Can Excel to PDF open a .csv file directly?
No. It reads .xlsx and .xls, because those carry the column widths, number formats and page setup a PDF needs. Open the .csv in a spreadsheet app, save it as .xlsx and convert that.
Why is my whole CSV row in one cell?
The app picked the wrong separator. The file uses a semicolon or a tab where the reader expected a comma. Use the import dialog and choose the separator instead of double-clicking the file.
Why did my postcodes lose their leading zero?
The column was read as numbers. Set it to Text during the import, or format the column as text before pasting, then check one value before you convert.
Is the CSV uploaded anywhere on the way to PDF?
Not by this site. The spreadsheet app runs on your machine and Excel to PDF runs in this browser tab. Google Sheets is the exception, since it stores the file in Drive.
How do I keep the header row on every PDF page?
Set the row to repeat in the sheet's page setup, Rows to repeat at top in Excel, before you save the .xlsx. The converter draws what the sheet would print.
Can I convert CSV to PDF on a phone?
Yes, when a spreadsheet app on the phone saves a .xlsx copy. Excel to PDF then runs in the phone's browser, and the page count tells you whether the columns fit before you convert.

Do it now

The tool runs in this browser. Your file never leaves the machine, and the result is checked before you download it.

Excel to PDF

Where to go next