How can I run the html pages in the browser, because when I add a page with html extension, it downloads as if it were a document.


  • Are you referring to Modern Pages or Classic Pages? Commented Sep 19, 2017 at 5:18
  • I mean html files Commented Sep 19, 2017 at 14:29
  • 1
    No, that i understand that you want to render an HTML file. But where you want to render it? On a SharePoint Classic Page or Modern Page or directly using file URL? In case its classic page, you can use Content Editor Web Part and paste the URL to file in document library. In case you want to render directly, change the extension to aspx. For modern page, I am searching right now what are the possible ways. Commented Sep 20, 2017 at 5:43

1 Answer 1


As a workaround try to rename yourhtmlpage.htm to yourhtmlpage.aspx then it will be displaying in the browser.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.