How to batch convert multiple Word documents to PDF files
It is easy to convert a single Word document to a PDF using the Save As feature in Word. But what if you need to convert all Word documents in a folder into separate PDF files at once? This guide will show you how to batch convert multiple Word documents to PDF files in Word.
Batch convert multiple Word documents to PDF files with VBA
Batch convert multiple Word documents to PDF files with Kutools for Word
Batch convert multiple Word documents to PDF files with VBA
The following VBA code allows you to quickly convert all Word documents in a folder to PDF files at once. Follow these steps:
- In Word, press Alt + F11 to open the Microsoft Visual Basic for Applications window.
- In the editor, click "Insert" > "Module", then copy and paste the following VBA code into the module window.
Sub ConvertWordsToPdfs() 'Updated by Extendoffice 20181123 Dim xIndex As String Dim xDlg As FileDialog Dim xFolder As Variant Dim xNewName As String Dim xFileName As String Set xDlg = Application.FileDialog(msoFileDialogFolderPicker) If xDlg.Show <> -1 Then Exit Sub xFolder = xDlg.SelectedItems(1) + "\" xFileName = Dir(xFolder & "*.*", vbNormal) While xFileName <> "" If ((Right(xFileName, 4)) <> ".doc" Or Right(xFileName, 4) <> ".docx") Then xIndex = InStr(xFileName, ".") + 1 xNewName = Replace(xFileName, Mid(xFileName, xIndex), "pdf") Documents.Open FileName:=xFolder & xFileName, _ ConfirmConversions:=False, ReadOnly:=False, AddToRecentFiles:=False, _ PasswordDocument:="", PasswordTemplate:="", Revert:=False, _ WritePasswordDocument:="", WritePasswordTemplate:="", Format:= _ wdOpenFormatAuto, XMLTransform:="" ActiveDocument.ExportAsFixedFormat OutputFileName:=xFolder & xNewName, _ ExportFormat:=wdExportFormatPDF, OpenAfterExport:=False, OptimizeFor:= _ wdExportOptimizeForPrint, Range:=wdExportAllDocument, From:=1, To:=1, _ Item:=wdExportDocumentContent, IncludeDocProps:=True, KeepIRM:=True, _ CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _ BitmapMissingFonts:=True, UseISO19005_1:=False ActiveDocument.Close End If xFileName = Dir() Wend End Sub
- Press F5 to run the code.
- A Browse dialog will pop up. Select the folder containing the Word documents you want to convert to PDFs, and click "OK".
All Word documents in the selected folder will be converted to separate PDF files.

Batch convert multiple Word documents to PDF files with Kutools for Word
If VBA code is hard to handle, you can try the "Convert documents" utility of Kutools for Word. This tool simplifies the process, making it more accessible and efficient compared to manual methods in Word.
- Click "Kutools Plus" > "Doc/Docx".
- In the "Document Format Converter" window, follow these steps:
- Select "Convert docx to pdf" from the "Format Convert" drop-down menu.
- Click
to add documents:
- Choose "Files" to add individual documents.
- Choose "Folder" to add all documents from a specific folder.
- By default, PDF files will be saved to the same location as the source files. To change the location, click the "Browse" button
and choose a new destination.
- Optionally, check the "Delete source files after conversion" box to remove the original files after the PDFs are created.
- Optionally, check the "Keep the modified date of original files" box to retain the original file metadata.
- Once all settings are complete, click "OK".
Now, all .docx format documents have been successfully converted to PDF files.
Best Office Productivity Tools
Kutools for Word - Elevate Your Word Experience with Over 100 Remarkable Features!
π€ Kutools AI Features: AI Assistant / Real-Time Assistant / Super Polish (Preserve Format) / Super Translate (Preserve Format) / AI Redaction / AI Proofread...
π Document Mastery: Split Pages / Merge Documents / Export Selection in Various Formats (PDF/TXT/DOC/HTML...) / Batch Convert to PDF...
β Contents Editing: Batch Find and Replace across Multiple Files / Resize All Pictures / Transpose Table Rows and Columns / Convert Table to Text...
π§Ή Effortless Clean: Sweap away Extra Spaces / Section Breaks / Text Boxes / Hyperlinks / For more removing tools, head to the Remove group...
β Creative Inserts: Insert Thousand Separators / Check Boxes / Radio Buttons / QR Code / Barcode / Multiple Pictures / Discover more in the Insert group...
π Precision Selections: Pinpoint Specific Pages / Tables / Shapes / Heading Paragraphs / Enhance navigation with more Select features...
β Star Enhancements: Navigate to Any Location / Auto-Insert Repetitive Text / Toggle Between Document Windows / 11 Conversion Tools...
π Supports 40+ Languages: Use Kutools in your preferred language β supports English, Spanish, German, French, Chinese, and 40+ others!

Best Office Productivity Tools
Kutools for Word - 100+ Tools for Word
- π€ Kutools AI Features: AI Assistant / Real-Time Assistant / Super Polish / Super Translate / AI Redaction / AI Proofread
- π Document Mastery: Split Pages / Merge Documents / Batch Convert to PDF
- β Contents Editing: Batch Find and Replace / Resize All Pictures
- π§Ή Effortless Clean: Remove Extra Spaces / Remove Section Breaks
- β Creative Inserts: Insert Thousand Separators / Insert Check Boxes / Create QR Codes
- π Supports 40+ Languages: Kutools speaks your language β 40+ languages supported!