Skip to main content

How to view source code of HTML email body in Outlook?

Author: Siluvia Last Modified: 2025-04-10

Viewing source code gives you an opportunity to understand the underlying HTML and other server code existing in an HTML email body. In the following tutorial, you will learn how to view the source code of an HTML email body in Outlook.


View source code of HTML email body in Outlook

In Outlook 2010 or later versions, you can view the source code of an HTML email body as follows:

1. Double-click to open an HTML email message whose source code you need to view.

2. In the "Message (HTML)" window, click "Actions" > "Other Actions" > "View Source" in the "Message" tab. See screenshot:

Tip: If you are using Outlook 2007, please click "Other Actions" > "View Source".

the steps of viewing source code of html email body in Outlook

After clicking "View Source", a text document will immediately open displaying the source code of the HTML email body.

the steps of viewing source code of html email body in Outlook

Notes:

1. This "View Source" function can only be applied to HTML email messages. If your opened message is not in HTML format, you can change its format by clicking "Message" > "Actions" > "Edit Message" to display the "Format Text" tab. Under the "Format Text" tab, click "HTML" in Outlook 2010 or later versions.

the steps of viewing source code of html email body in Outlook

And if you are using Outlook 2007, please click "Message" > "Other Actions" > "Edit Message" to display the "Options" tab, and then click "HTML" under "Options".

2. You can also view the source code of an HTML email body by opening the message, putting the cursor in the message body, then right-clicking and choosing "View Source" from the context menu.

the steps of viewing source code of html email body in Outlook

One-click to view the source code of an HTML message header with a cool tool

While viewing the body of an HTML email in Outlook is straightforward, accessing the source code of the email header directly in Outlook typically requires additional steps. For a more efficient method, consider using "Kutools for Outlook". This tool enhances Outlook’s functionality, providing a "one-click" feature that facilitates quick and easy access to the HTML source code of email headers.

Unlock ultimate email efficiency with Kutools for Outlook! Access 70 powerful features absolutely free, forever. Download the Free Version Now!

1. After downloading and installing Kutools for Outlook, navigate to the "Kutools Plus" tab and click "Report" > "Message Header Analyzer".

the steps of viewing the source code of an HTML message header with a cool tool

2. In the "Message Header Analyzer" dialog that appears, switch to the "Source Data" tab. Then, you will get the source data of the message header of the selected HTML email.

the steps of viewing the source code of an HTML message header with a cool tool
Note: To apply the "Message Header Analyzer" utility in "Kutools for Outlook", first you should download and install Kutools for Outlook.

Demo: view the source code of an HTML message header


Best Office Productivity Tools

Breaking News: Kutools for Outlook Launches Free Version!

Experience the all-new Kutools for Outlook FREE version with 70+ incredible features, yours to use FOREVER! Click to download now!

πŸ€– Kutools AI : Uses advanced AI technology to handle emails effortlessly, including replying, summarizing, optimizing, extending, translating, and composing emails.

πŸ“§ Email Automation: Auto Reply (Available for POP and IMAP)  /  Schedule Send Emails  /  Auto CC/BCC by Rules When Sending Email  /  Auto Forward (Advanced Rules)   /  Auto Add Greeting   /  Automatically Split Multi-Recipient Emails into Individual Messages ...

πŸ“¨ Email Management: Recall Emails  /  Block Scam Emails by Subjects and Others  /  Delete Duplicate Emails  /  Advanced Search  /  Consolidate Folders ...

πŸ“ Attachments ProBatch Save  /  Batch Detach  /  Batch Compress  /  Auto Save   /  Auto Detach  /  Auto Compress ...

🌟 Interface Magic: 😊More Pretty and Cool Emojis   /  Remind you when important emails come  /  Minimize Outlook Instead of Closing ...

πŸ‘ One-click Wonders: Reply All with Attachments  /   Anti-Phishing Emails  /  πŸ•˜Show Sender's Time Zone ...

πŸ‘©πŸΌβ€πŸ€β€πŸ‘©πŸ» Contacts & Calendar: Batch Add Contacts From Selected Emails  /  Split a Contact Group to Individual Groups  /  Remove Birthday Reminders ...

Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Instantly unlock Kutools for Outlook with a single click. Don't wait, download now and boost your efficiency!

kutools for outlook features1 kutools for outlook features2