How to batch convert .doc files to .docx format in Word?
If you've received multiple Word documents in the older 97-2003 .doc format, converting them individually to the modern .docx format can be time-consuming. This guide introduces two efficient methods to batch convert .doc files to .docx: using VBA code or the powerful Kutools for Word add-in.
Batch convert .doc files to .docx format with VBA code
Batch convert .doc files to .docx format with Kutools for Word
Batch convert .doc files to .docx format with VBA code
This section demonstrates how to use VBA code to convert all .doc format files in a specified folder into .docx files at once. Follow the steps below:
- Gather all the .doc files you want to convert into a single folder.
- Press Alt + F11 to open the Microsoft Visual Basic for Applications window.
- In the VBA window, click Insert > Module. Copy and paste the following VBA code into the Module window:
Sub ConvertDocToDocx() 'Updated by ExtendOffice 20181128 Dim xDlg As FileDialog Dim xFolder As Variant Dim xFileName As String Application.ScreenUpdating = False Set xDlg = Application.FileDialog(msoFileDialogFolderPicker) If xDlg.Show <> -1 Then Exit Sub xFolder = xDlg.SelectedItems(1) + "\" xFileName = Dir(xFolder & "*.doc", vbNormal) While xFileName <> "" Documents.Open FileName:=xFolder & xFileName, _ ConfirmConversions:=False, ReadOnly:=False, AddToRecentFiles:=False, _ PasswordDocument:="", PasswordTemplate:="", Revert:=False, _ WritePasswordDocument:="", WritePasswordTemplate:="", Format:= _ wdOpenFormatAuto, XMLTransform:="" ActiveDocument.SaveAs xFolder & Replace(xFileName, "doc", "docx"), wdFormatDocumentDefault ActiveDocument.Close xFileName = Dir() Wend Application.ScreenUpdating = True End Sub
- Press F5 to run the code. In the Browse window that appears, select the folder containing your .doc files and click OK.
All .doc format files in the selected folder will be converted to .docx files immediately, as shown in the screenshot below:

Batch convert .doc files to .docx format with Kutools for Word
This section introduces a handy utility for batch conversion. With the Doc/Docx utility in Kutools for Word, you can easily convert all .doc format documents in a folder to .docx format in just a few clicks. Follow these steps:
- In a blank document, click Kutools Plus > Doc/Docx.
- In the Document Format Converter window, follow these steps:
- Select Doc to Docx from the Format Convert drop-down menu.
- Click
to add documents you need to convert:
- 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.
- Once the conversion is complete, a dialog box will appear indicating how many documents have been successfully converted. Click the OK button and close the Document Format Converter window.
Now, all .doc format documents have been successfully converted to .docx 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!