Convert Office Files to PDF
File to PDF converts Word, Excel, PowerPoint, OpenDocument, RTF and plain-text files to PDF with LibreOffice. Layout follows LibreOffice's import, so it can differ from Microsoft Office.
Drag and drop files here, or click to choose
Accepts DOCX, DOC, ODT, RTF, XLSX, XLS, ODS, PPTX, PPT, ODP, TXT · up to 500.0 MB per file · up to 20 files at once
You can also paste a file with Ctrl/Cmd+V, or from the clipboard menu.
File to PDF sends an office document through LibreOffice (`soffice --convert-to pdf`). The website accepts Word, Excel, PowerPoint, OpenDocument, RTF, and `.txt`. LibreOffice decides what it can open, and the result for an unreadable file is not always an error: in tests, a text file named .docx and 2,000 random bytes named .docx or .xyz each came back as a one-page PDF with HTTP 200 (the .docx text file was blank). Always open the result and check the page count and content.
This is not a universal file converter. Executables, random binaries, and formats soffice does not import are rejected or produce garbage. Macros are not a feature; do not upload documents whose macros you do not trust.
Layout follows LibreOffice's import of that format, then its PDF export. Excel print areas, PowerPoint notes, and Word tracked changes may not look like the source app. Encrypted office files often fail until opened and re-saved locally. Linked external resources, such as remote images and linked files in Office and OpenDocument documents, are removed before conversion, so they are missing from the PDF.
PDFs are the wrong input; they are already PDF. Images should use Images to PDF. Ebooks should use Ebook to PDF.
The file's extension picks the import path, and the output is named after the upload with a .pdf extension. A document with no extension still converted in a test, as plain text. The pages in the tests were A4 (595 by 842 points) for both text and Word input; page size comes from the document, not from a setting here.
Measured on a local server: a .txt file of about 200 lines became a 4-page PDF, the same text as a .docx also gave 4 pages, and an .xlsx sheet of 61 rows by 40 columns with no print area gave 12 pages. For a wide sheet, set a print area or reduce the columns in the source file before converting.
Hyperlinks to remote images and linked files inside OOXML and OpenDocument files are stripped before LibreOffice opens them, so a document that shows a picture only through a remote link will convert without that picture. Embed the picture in the document first.
Choosing the right tool: use File to PDF for a finished office document. Use HTML to PDF for a web page, Markdown to PDF for Markdown, Images to PDF for pictures, and Ebook to PDF for ebooks. If the PDF has the right content but wrong page breaks, fix the layout in the source application and convert again, because this page has no layout options.
Features
- LibreOffice `--convert-to pdf`
- Office and text types listed on the upload control
- Not a generic any-file transcoder
- Anonymous API at /api/v1/convert/file/pdf
When to use this tool
- Turn a DOCX letter into a PDF for a portal that only takes PDF
- Print a spreadsheet to PDF when you accept LibreOffice pagination
- Convert ODT that was never opened in Word
- Export a plain-text log or note as a paged PDF for an archive folder
- Produce a quick PDF copy of a slide deck for a reviewer, then check each slide's layout against the original
How do I convert a Word document to PDF?
- Upload a .docx, .xlsx, .pptx, OpenDocument, .rtf, or .txt file.
- Click Process. There are no page-size options on this page.
- Download the PDF.
- Check page breaks against the original app's print preview.
- Open the PDF and check the page count and the first page. A file LibreOffice could not read may still return a short or blank PDF with HTTP 200.
- For a spreadsheet, compare the page count with what you expected. If it is far higher, set a print area in the source file and convert again.
Limits and edge cases
- Only formats soffice imports
- No print-area or paper-size fields
- Macros and encryption in the office file often fail
- An unreadable file may return a one-page PDF instead of an error
- External links and linked files in Office and OpenDocument files are removed, so linked content is missing
- The page converts one document at a time; use Merge afterwards to combine results
- Upload limit on this website: 500 MB per file, sent in chunks above about 95 MB. A single direct API request body is capped at 100 MB.
Examples
- A simple DOCX memo often becomes a close PDF of those pages
- A huge XLSX with no print area often becomes a surprising number of PDF pages
- A text file of about 200 lines converted to a 4-page A4 PDF
- A 61-row, 40-column .xlsx without a print area converted to 12 pages
- A text file renamed .docx converted to a single blank page with HTTP 200
Privacy for this tool
Files are uploaded over HTTPS, processed in memory or a short-lived temporary directory on our servers, and deleted when your result is ready. We do not keep copies for later browsing, training, or advertising profiles. See the Privacy Policy for retention details and AdSense cookie disclosures.
Frequently asked questions
- Can I convert a PDF here?
- The page does not accept .pdf files. A direct API request with a .pdf was converted in a test, but LibreOffice re-imported the file instead of copying it (a 51,844-byte, 4-page PDF came back as 63,599 bytes, 4 pages), so keep your original. For PDF-to-PDF jobs use Compress, Repair or Linearize.
- Why did my XLSX become many blank pages?
- LibreOffice prints sheets by its own page setup. Set print area in Excel and re-export, or crop after.
- Are macros executed?
- Do not rely on that. Treat this as an untrusted conversion sandbox and strip macros before upload if they matter.
- Is .txt wrapped or one long page?
- Whatever LibreOffice's text import does. In a test, a .txt file of about 200 short lines became a 4-page A4 PDF. This tool does not expose wrapping options.
- Why does my PDF have a blank page, or only one page, when the document is long?
- A file that LibreOffice cannot parse can still produce a one-page PDF with a success response. A text file named .docx came back as one blank page in a test. Open the file in the original application; if it does not open there, repair or re-save it and upload again.
- Why are images missing from my converted document?
- Links to external resources, such as remote pictures or linked files, are removed from Office and OpenDocument files before conversion. Embed the picture in the document and convert again.
- Can I convert several documents at once?
- This page takes one document at a time. For a combined file, convert each document separately and then use Merge, which joins PDFs in upload order.
- Does the PDF have the same name as my document?
- The download is named after the uploaded file with a .pdf extension, so `wide.xlsx` came back as `wide.pdf`.
Last updated:
Call this from code
Every tool on this site is a plain REST endpoint - no account or API key needed for anonymous use. Built for AI agents and developers as much as for browsers.
curl -X POST "https://pdf123.xyz/api/v1/convert/file/pdf" \
-F "[email protected]" \
-o output.pdfAlso available as an MCP tool for agent clients that speak Model Context Protocol (JSON-RPC 2.0 over POST /mcp). Full API reference
Use it from an AI agent
SkillClaude Code, Codex, Cursor and other AI agents can run File to PDF for you with this skill: /skills/pdf123-file-to-pdf.md
Files are used only for this processing job and deleted automatically afterward.