How to create HTML pages in SharePoint with Copilot or your own file

Published: Updated: 6 min readSharePoint Online
SharePoint HTML pages created with Copilot

HTML pages reached my demo tenant this month, so I spent an evening adding them to three test sites: one from my own HTML file, one built by Copilot from list data, and one on a site that Copilot is not allowed to read. The last one taught me the most.

Key takeaways

  • SharePoint now shows .html files from the Site Pages library as real pages, with the site header, navigation and footer around them.
  • Create one from + New > HTML page (Copilot licence), or from Pages > Create or upload > Upload HTML page (no licence).
  • Inline JavaScript works, live list data appears only after publishing, and sites kept out of Copilot don’t show the HTML page option.

The feature is rolling out under MC1479517 (roadmap 569208). Worldwide GA started mid-November and should finish by late December 2026, so some of your sites may not show it yet. Microsoft’s steps are in Create, upload, edit, and publish HTML pages in SharePoint.

On this page

When I would pick an HTML page

A modern page is still the right choice for news, team updates and anything people comment on. An HTML page is better when the layout itself is the point.

Use an HTML page forStay with a modern page for
Tabs, accordions, searchable FAQs, step-by-step guidesNews posts and anything you promote to news
A live summary of a list or Excel file (cards, charts)Pages that need comments or reactions
HTML you already have (a report, a microsite, a campaign page)Multilingual pages
A one-off design the web parts can’t doPages people edit on the mobile app

Readers need no Copilot licence. Publishing doesn’t grant new permissions: people see the page only if they can already open the site.

1 – Create an HTML page with Copilot

I used the MST Research and Development test site and its Experiments Register list (1,800 items). My account needs edit rights on the site and a Microsoft 365 Copilot licence.

  1. Open HTML page from the New menu

    Open the site, select + New and then HTML page.
    SharePoint New menu showing the HTML page option

  2. Describe the page or upload a file

    The Create an HTML page screen opens. Describe the page in the box, or use Upload an HTML file below it.
    Create an HTML page screen with Copilot prompt box and upload option

  3. Send your prompt

    Type the prompt and select the arrow. My prompt is below these steps.

  4. Wait for Copilot to build the draft

    Wait. Copilot saved a placeholder called Page.html straight away, then worked for about two minutes (36 reasoning steps) and opened the result in edit mode.

  5. Expect the live data message in edit mode

    Read the yellow bar: Live data isn’t available while editing, so some content may not appear. That is normal. The data sections show an error in edit mode.
    SharePoint HTML page in edit mode saying live data isn't available while editing

  6. Publish the page

    Select Publish page. The cards now showed 357 Planned, 372 Running, 720 Complete and 351 Abandoned. I counted the list separately and the numbers matched.
    Published SharePoint HTML page with live experiment counts from a list

The prompt I used in step 3:

Create an HTML page called 'R&D Programme Overview' for department heads who want a two-minute view of our research work. Use the Experiments Register and Research Ideas lists on this site as live data. Include: a row of summary cards with the number of experiments by status, a bar chart of experiments per programme, a searchable table of the 20 most recent experiments (programme, rig, start date, status), and a section with the newest research ideas. Use the site theme colours, white cards with soft shadows, and make it accessible and readable on a laptop screen.

The first draft wasn’t perfect. Every bar in the chart was a solid black bar at full width, and the table had lost its styling. One follow-up prompt fixed both in 18 steps, so plan for a second prompt. I’m sharing the prompts I used, including the fix prompt, in a separate post in this series.

Copilot HTML page chart before and after a follow-up prompt

2 – Upload your own HTML file

This way needs no Copilot licence. I uploaded a self-help page to the MST IT Service Desk test site as Alex Miller, a site member.

  1. Open Pages in the site navigation (the Site Pages library).
  2. Select Create or upload and then Upload HTML page. Use Upload HTML folder when the page has its own images or scripts.
Site Pages Create or upload menu with Upload HTML page and Upload HTML folder
  1. Pick the file. SharePoint confirms: “Upload complete. Your HTML file is now a page in Site Pages. Any supporting assets are stored in Site Assets.”
  2. Open the file from the library. It opens as a Draft inside the site header and navigation.
Uploaded HTML page shown as a draft inside the SharePoint site

The tabs and the search box in my file worked without changes. The limit is 10 MB for the HTML file itself, not counting images and videos. An uploaded page doesn’t pick up the site theme; ask Copilot to match it if you need that.

Microsoft lists a third way, which I haven’t tried yet: move an HTML file that’s already in a document library with … > Edit > Edit in SharePoint, or Move to the Site Pages library. If you leave the file in the document library, it opens in SharePoint’s HTML viewer as a file, not as a site page.

Edit, publish and share

Select Edit and SharePoint shows a tip: select text to edit it directly, or use Copilot for design and layout changes. Clicking any element shows a small formatting toolbar.

Inline text toolbar on a SharePoint HTML page in edit mode

I asked Copilot to add a Raise a ticket button that opens the list’s new item form. It added the button, but behind the stat cards where nobody could see it, and said it couldn’t verify the list URL. A second prompt with the exact URL put the button in the header in 4 steps. On the published page the button replaced the page with the New item form in the same tab.

Publishing works like modern pages. Drafts are minor versions: the version history went 0.1, 0.2, 0.3, then 1.0 at the first publish and 2.0 after the Copilot edit. While the page was a draft, Tim Devis (a reader) got You need access. After Publish page he saw it with no edit commands.

Reader sees access denied on a draft HTML page and the page after publishing

To share, select Share on the page and add people, copy a link, or send it to site members by email.

Issue I hit

On the MST IT Service Desk site, + New had no HTML page option at all. That site shows a Restricted label: its content is kept out of Microsoft 365 Copilot. On the unrestricted R&D site the option was there, marked New. Upload still worked on the restricted site, so the block is on Copilot creation, not on HTML pages. If a user says the option is missing, check the site’s Copilot restriction before the licence. I covered finding those sites in Three ways to find which SharePoint sites have Copilot blocked.

SharePoint New menu without and with the HTML page option

Not supported yet on HTML pages: news promotion, comments and reactions, co-authoring, multilingual pages, SharePoint web parts inside the page, print to PDF, and viewing or editing in the SharePoint mobile apps. HTML views on lists and the admin side (settings, security and PowerShell) are in the next posts of this series.

Share:
Adnan Amin

Adnan Amin

Adnan Amin is a Microsoft MVP for Microsoft 365 (since 2015) and a Senior Microsoft Consultant. He writes practical guides and PowerShell scripts for SharePoint, OneDrive, Teams and Copilot admins.

More posts by Adnan Amin

Leave a Reply

Your email address will not be published. Required fields are marked *