Compsmag is supported by its audience. When you buy through links on our website, we may earn an affiliate commission fee. Learn more

Batch Convert DOCX Files to TXT Format with textutil on Mac OS

Check tutorial of How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X

So after a lot of requests from our users here is a guide about How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X.

The Mac includes a fantastic command line tool called textutil that allows for quick text file format conversions, translating almost any text or word document type into another. We’ve discussed textutil for various uses, but mostly it was for one-time conversions from a specific file to a new file type. This time we’ll focus on batch converting a group of files that are in the common Microsoft Office “DOCX” format, which is basically a compressed XML version of a classic Office DOC file, into a simple TXT file. or RTF file format, which has greater compatibility.

Since textutil is a command line tool, users should feel somewhat comfortable using the terminal before diving in, this is reflected in the first examples shown for those who know the command line well enough. If you’re new, we’ll try to make it so simple that almost anyone with any skill level can go with Mac OS X.

Convert batch DOCX to TXT / RTF with textutil

For those adept at using the command line, the syntax required for batch docx conversion to txt or rtf files is as follows:

Batch convert docx files to txt with textutil

Convert DOCX to TXT:

textutil -convert txt /path/to/DOCX/files/*.docx

Convert .docx to .rtf :

textutil -convert rtf /path/to/docx/files/*.docx

The “-convert txt” or “-convert rtf” flag tells textutil to convert the files to the given format, and the rest of the command string is just a path to the files in question. It then uses a wildcard * with a .docx file extension to tell textutil to convert everything in that specified folder.

The newly converted rtf or txt files appear in the same folder as the original .docx files, the original dock files are not overwritten or changed. That’s it, you’re all set. It is clear that the txt file format is more universally readable than rtf, but RTF files retain some formatting better than txt. Use whatever is necessary or depending on the complexity of the docx files in question.

Convert batch from DOCX to TXT for Mac Terminal Newbies

If the above is beyond you, don’t worry, you can make the process a little easier by using a combination of the Finder and the Terminal, thanks to the full print path trick:

  1. In the Finder file system, navigate to the folder where the docx files to convert are located, or drag the docx containing folder to the desktop
  2. Open the Terminal application, found in / Applications / Utilities /
  3. Type the following command syntax, add a space at the end of ‘txt’, but don’t press return yet:
  4. textutil -convert txt

  5. Go back to the Finder, now drag the docx containing folder to the terminal window to print the full folder path to the terminal
  6. At the end of the folder path, add “* .docx” without the quotes, the resulting command string at the terminal prompt should look something like this:
  7. textutil -convert txt ~ / Desktop / MyDocxFiles / *. docx

  8. Press Return to complete the batch conversion

The new .txt files will appear in the same folder as the original .docx files almost immediately, they even have the same file name with the exception of the new file format extension. If you can’t tell the old file from the new ones, make sure the file format extensions are visible in the Mac Finder to easily tell the difference.

Batch converted docx to txt files in a Mac folder

Thanks to James Harvard for the tip idea.

How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X Guide is free?

Starting from: Free
This guide is a free model
Free Trial: May be included, please check on the official site, we mentioned above.
The How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X tutorial price is Free or Freemium. This means you can truly enjoy the How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X guide.

The How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X guide gives you an easy-to-use and efficient management and How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X allows you to focus on the most important things. It’s friendly guide to use maybe you will love it and How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X tutorial can be used on Linux, Windows or android devices.

How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X: benefits

  • The How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X tutorial is free .
  • Helps many users follow up with interest in a timely manner.
  • The price of the How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X guide is free.

How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X: FAQ

Tutorial Summary: How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X

In this guide, we told you about How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X; please read all steps so that you understand How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X in case if you need any assistance from us, then contact us.

How this tutorial helping you?

So in this guide, we discuss the How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X, which undoubtedly helps you.

What is actual time in which this method complete?

The time to complete the How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X tutorial is 10+ minutes.

What are the supported Device?

Apple

What are the supported Operating system?

mac OS


How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X Tutorial: final note

For our visitors: If you have any queries regards the How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X, then please ask us through the comment section below or directly contact us.
Education: This guide or tutorial is just for educational purposes.
Misinformation: If you want to correct any misinformation about the guide “How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X”, then kindly contact us.
Want to add an alternate method: If anyone wants to add the more methods to the guide How to Batch Convert DOCX Files to TXT Format with textutil in Mac OS X, then kindly contact us.
Our Contact: Kindly use our contact page regards any help. You may also use our social and accounts by following the Whatsapp, Facebook, and Twitter for your questions. We always love to help you. We answer your questions within 24-48 hours (Weekend off).
Channel: If you want the latest software updates and discussion about any software in your pocket, then here is our Telegram channel.

Compsmag