A Consuming Experience

Making the opaque transparent to over 3 million visitors since October 2004, and still averaging over 2000 unique visitors daily.

Practical technology for intelligent non-geeks from a consumer perspective, from computing, internet, mobile and blogging to media, comms and digital rights.

Tip: convert Word to HTML, and convert Excel and PDF to HTML too, free

Wednesday, March 01, 2006
Deutsch | Español | Français | Italiano | Português | 日本語 | 한국어 | 汉语



I just realised there's an easy free way to convert Microsoft Word DOC, Excel XLS or Adobe Acrobat PDF documents into nice clean HTML for your website or web pages.

Just email the file to yourself at your Gmail address (now anyone can sign up for Gmail free), login to Gmail, open the email, click to view the attachment as HTML, view the source of the new window that pops up, and copy and paste the HTML code to use for your webpage. [Added 10 March 2006:] Thanks to LilacPhonograph for adding (see comment) that your Gmail/Google Mail display language must be set to English US (Settings, General tab), if you can't see a View as HTML option.

There may be a bit of search/replace to do after that in order to to get rid of some fonts from the original DOC file (e.g. the face="whatever" code), and perhaps some other tidying will be needed, but it's a lot better than trying to convert Word docs into HTML from within Word itself, which just produces lots of horrid messy Microsoft-specific code. And it's a quick way to transfer e.g. tables in Word or Excel to HTML tables - it sure beats laborious retyping or copy/paste followed by lots of editing.

Many people have probably already cottoned on to this trick, I've been slow off the mark here - but for those who haven't, I hope this is a helpful tip. It's certainly saved me lots of time as I often have to try to convert tables sent to me in Word or Excel into HTML for webpages. And it works pretty well with PDF files too, again with just a bit of tidying up. Good ol' Google!


Technorati Tags: , , , , , , , , , , , , , , , , , , , , , ,


Links to this post on:

  • Icerocket -
  • Blogpulse
  • Bloglines
  • Delicious
  • Google Blog Search -

Create link here by posting on Blogger



16 Comment(s):

This is a very handy tip but it had me confused for a while, as I didn't have a "View as HTML" link!

Thanks to an anonymous comment over at Amit Agarwal's post on the same subject I've discovered that you must have your Google Mail display language set to "English (US)" for this to work.

Being British, I find this a little annoying. However, changing the language setting has enabled access to Google Chat (which is also absent in UK English), so I guess I may have to swallow my nationalist principles!

(By Blogger Mike Eagling, at 02 March, 2006 18:11)  Edit Comment

This is brilliant! Thanks for sharing.

(By Anonymous Ed Kohler, at 06 March, 2006 04:26)  Edit Comment

Thanks for your comments LilacPhonograph and Ed.

I'm British too but I got my Gmail a while back (default settings of US) and I never bothered to change the language setting. I'll update the post to mention that tip Lilac, thanks for that!

(By Blogger Improbulus, at 10 March, 2006 16:06)  Edit Comment

You are brilliant. What a simple solution.

(By Anonymous Extremely Pleased, at 22 August, 2006 08:15)  Edit Comment

Glad to have been of help extremely pleased, thanks for your comment!

(By Blogger Improbulus, at 26 August, 2006 22:31)  Edit Comment

Awesome

(By Anonymous Kathleen Anderson, at 29 December, 2006 21:26)  Edit Comment

Thanks Kathleen!

(By Blogger Improbulus, at 01 January, 2007 11:18)  Edit Comment

hey thanks!!! viewing source from gmail saved me tons of work - thanks you genius!!!

(By Blogger Mishan, at 06 May, 2008 16:35)  Edit Comment

Word also has an option to save as 'Web Page, Filtered'. This will remove the MS specific items for you and save the trouble.

(By Anonymous Anonymous, at 10 July, 2008 16:11)  Edit Comment

This no longer works, or at least not with Word 2007 and GMail 2. GMail will give you a message that says you must download the original document to view. Sigh.

(By Blogger Fred, at 13 September, 2008 17:07)  Edit Comment

Kudos for this tip! It's better than Chrome.

(By Anonymous Anonymous, at 18 September, 2008 15:55)  Edit Comment

Use OpenOffice 3, it works really for converting docx files to wiki documents.

(By Anonymous Anonymous, at 28 April, 2009 12:57)  Edit Comment

Images in your doc(x) are not available in the HTML view!

(By Anonymous Anonymous, at 23 June, 2009 08:41)  Edit Comment

this is not a solution to a problem as a developer point of view. If you no the source code to convert then publish that code.

(By Blogger akhil, at 14 October, 2009 08:48)  Edit Comment

This is a GREAT idea, THANKS A LOT !!

(By Anonymous Anonymous, at 02 June, 2011 08:34)  Edit Comment

no longer working

(By Anonymous Anonymous, at 04 October, 2011 15:55)  Edit Comment

Post a Comment | Subscribe to all comments on all posts


| Previous Post »
| Previous Post »
| Previous Post »
| Previous Post »
| Previous Post »
| Previous Post »
| Previous Post »
| Previous Post »
| Previous Post »