i need to change my documents from RTF to HTML how do i do this

What software do I need to create files that are readable by Windows applications?? really stuck on this one!!

iMac (21.5-inch Mid 2011), OS X Mountain Lion (10.8.3)

Posted on Apr 19, 2013 5:40 AM

Reply
10 replies

Jul 11, 2017 10:32 AM in response to tarlneustaedter

Textutil will convert the RTF files to HTML, with attributed text, and URL links retained. However, any formatting in the original RTF document will be lost, and the resulting HTML content will just be a margin to margin text dump when viewed in the browser.


If you want to reformat that HTML into an improved presentation, then additional HTML and CSS3 styling is required.

Apr 19, 2013 9:02 PM in response to hmartiii

Of course, we could go old school and use the Terminal command-line to convert the following file types to HTML:

  • text
  • rtf
  • rtfd (text+image)
  • doc
  • docx
  • xml
  • odt (LibreOffice/OpenOffice Writer
  • webarchive


While in Finder, press shift+command+U. This will open the /Applications/Utility folder. Double click on Terminal to launch it. The assumption (for simplicity) is that the file you want to convert from one of the listed file formats is sitting in your login directory.


Triple-click on the following command to select it. Copy (command+C) it to the clipboard. Click your mouse inside the Terminal app to gain keyboard focus. Paste (command+v) the command below into the Terminal. Backspace over the sample filename and replace it with the compatible filename you want to convert. A new HTML file is written as filename.html. Your original file is unchanged.


/usr/bin/textutil -convert html foo.doc


Back in a Finder window, you can double-click the new filename.html and it will open in Safari. Any images in the source document will be placed in an adjacent folder. The conversion does a reasonable job of text and image placement, but is no substitute for fine-tuning via Cascading Style Sheets (CSS).


I wrote a folder-action that allows one to drag and drop a candidate file on it and produce an HTML file.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

i need to change my documents from RTF to HTML how do i do this

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.