Notepad++ Export file as HTML

If you have a text on your Notepad++ tab and you want to save it as a .html file format you can do that using "Export to HTML" option that is available under the Plugins tab,

  1. Be on the tab that you want to export as HTML,
  2. Goto Menu: Plugins -> NppExport -> Export to HTML
  3. Provide a name for the file.
  4. Click Save.
Notepad++ Export to HTML Option
Sample text:
This is my sample 
Sample Notepad++ Text
Output as HTML on Web Browser

As you can see that the file is saved as HTML code making sure that the formatting of your text remains the same. This is really great you want to make a text HTML pages.

Text after saving the file:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "">
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<title>Exported from Notepad++</title>
<style type="text/css">
span {
	font-family: 'Courier New';
	font-size: 10pt;
	color: #000000;
.sc0 {
	font-weight: bold;
<div style="float: left; white-space: pre; line-height: 1; background: #FFFFFF; "><span class="sc0">This is my sample 
Try Out Code2care Dev Tools:


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.