Many users working with office applications from Microsoft or analogues from other developers often encounter inconsistencies in document formats. Files with the * .rtf extension cannot be opened by older versions of applications. To avoid such a problem at the wrong time, you need to have a simple way to convert documents.
Rich Text Format (RTF) is not always adequately displayed on the web on different platforms. The simplest solution is to convert RTF to plain text and then transfer it to a txt file or paste it into an email, depending on your needs. In macOS, this can be done easily and simply.
Convert RTF to TXT via TextEdit
Here’s how to do this using only the built-in TextEdit application:
- Launch TextEdit;
- Creat a New document;
- Write or fill it with text this document;
- In the “Format” menu, select RTF;
- Click “OK” and Save the file;
- Next open Finder and locate your RTF file;
- Right-click on it and choose “Get Info”;
- Here open tab “Name & Extension”;
- And rename extension prefix from RTF on TXT;
- After that in window choose “Use .txt”;
- Congrats, you have done it!
Convert RTF to TXT via Terminal
The utility that is pre-installed on every Mac has a textutil module. It supports the following document formats: txt, html, rtf, rtfd, doc, docx, wordml, odt or webarchive. This means that you can easily “overtake” the document in any of the above extensions to another available one. To convert in the Terminal, enter the command:
textutil -convert filetype filename
You can convert the following formats: txt, rtf, rtfd, html, doc, docx, odt, wordml, and webarchive. Here is an example of the syntax for translating a file called test.rtf to txt format:
textutil -convert txt test.rtf
Textutil will automatically merge the file name with the correct extension. If you want to give a new name to this file, use – output as follows:
textutil -convert txt test.rtf -output NewFileName.txt
As you can see, there are some simple and effective ways. Choose the one that is more convenient for you.