How to Make a Notion Widget: Step-by-Step Guide
In this article
You can make a Notion widget by embedding a small web app or a hosted HTML file into a Notion page using the Embed block. Notion does not have a built-in widget builder, so the widget itself is created outside Notion (for example with HTML, CSS and JavaScript, or with a no-code widget service) and then pasted into Notion as an embed link. This guide walks through the whole process: choosing what the widget should do, building it, hosting it, embedding it, and fixing the usual problems.
What You'll Need
- A Notion account and a page where you have edit permission.
- A widget idea that works as a small web page (clock, countdown, progress bar, weather card, habit tracker, motivational quote, and so on).
- A way to write or generate the widget: basic HTML/CSS/JavaScript knowledge, or a no-code widget generator that gives you an embed URL.
- Hosting for the widget file if you build it yourself. Any static hosting service works, including GitHub Pages, Netlify, Vercel, or a personal web server. The file must be reachable over HTTPS.
- A desktop browser for the initial setup. The Embed block is available on desktop and in the Notion mobile apps, but building and testing the widget is much easier on a computer.
Step-by-Step
- Decide what the widget should display. Keep it small and single-purpose. A clock, a countdown to a date, a progress ring for a goal, or a simple text card all work well. Widgets that need a login, a database, or a lot of user input are harder to embed reliably.
- Choose your build method. If you are comfortable with code, write a single HTML file with inline CSS and JavaScript. If not, use a no-code widget service that lets you configure the widget and gives you a shareable link or embed code. Both routes end the same way: you need a URL that Notion can load.
- Build the widget as a standalone page. For a coded widget, create one
index.htmlfile. Put the styles in a<style>tag and the logic in a<script>tag so there are no missing files. Set a transparent or solid background that matches your Notion theme. Test it by opening the file in your browser. - Host the widget. Upload the HTML file to a static host and confirm the public URL loads in a browser. The URL must start with
https://; Notion will not embed insecurehttp://content. If you use a widget service, copy the embed link it provides instead. - Open the Notion page where the widget should live. Click on an empty line to create a new block. Type
/embedand choose the Embed block from the menu. Menu labels can differ slightly by Notion version, device, and region, but the Embed block is the one you want. - Paste the widget URL. In the Embed block, paste the hosted URL and press Enter. Notion will load a preview. If the preview shows a blank box or an error, the URL is not publicly reachable or the host is blocking embedding.
- Resize and position the widget. Drag the corners or edges of the embed to change its size. Most widgets look best at a fixed width and height, so set a size that matches the widget's design. You can also drag the block handle to move it beside text or other blocks.
- Test on the devices you use. Open the same Notion page on desktop and in the mobile app. Embedded content can render differently on phones, and some widgets that rely on hover effects will not work on touch screens. Adjust the widget's CSS if needed and re-upload.
- Keep the widget updated. If you change the HTML file, re-upload it to the same URL so the embed picks up the new version. If you use a widget service, changes made in the service usually appear after a page refresh.
Common Mistakes
- Using a local file path. Pasting something like
C:\Users\You\widget.htmlwill not work. Notion needs a public HTTPS URL. - Hosting on an insecure URL. An
http://link will be blocked or show a warning. Always use HTTPS. - Forgetting to make the file public. A hosted file that requires a login or is set to private will not load inside Notion.
- Building a widget that is too large. Widgets that assume a full browser window will look cramped in an embed. Design for a small fixed area.
- Relying on hover or right-click. Touch devices cannot hover, and some embeds block context menus. Use tap-friendly controls.
- Expecting the widget to sync with Notion data. An embed is a separate web page. It cannot read your Notion databases or page properties unless you build a separate integration, which is a much larger project.
Tips
- Match the widget background to your Notion theme (light or dark) so it does not look like a pasted box.
- Keep the widget's code in one file. Fewer external requests mean fewer things that can break.
- Use a countdown or clock widget as a first project. It is simple, visual, and easy to test.
- If you use a widget service, check whether it offers a transparent background option; it usually looks cleaner in Notion.
- Save a copy of your HTML file locally so you can rebuild the widget if the host goes down.
- Name the embed block clearly (for example, "Focus timer") so you can find it later in a long page.
Troubleshooting
If the embed shows a blank box, first open the widget URL directly in a browser. If it does not load there, the problem is with the host or the file, not Notion. Check that the URL is HTTPS and publicly accessible. If it loads in the browser but not in Notion, the host may be sending headers that block embedding; try a different static host.
If the widget appears but looks broken, check the size of the embed block. Many widgets need a minimum width to lay out correctly. Also test in a private browser window to rule out cached files.
If the widget works on desktop but not on mobile, simplify the layout and avoid hover-only interactions. Some hosts and services also load more slowly on mobile networks, so keep the widget lightweight.
If you see a message that the content cannot be displayed, remove the block and add it again with the URL. If the problem continues, try a different widget URL to confirm whether the issue is specific to that file.
Frequently Asked Questions
Can I make a Notion widget without coding?
Yes. Use a no-code widget service that generates an embed link, then paste that link into a Notion Embed block. You configure the widget on the service's site instead of writing code.
Does the widget update automatically?
It depends on the widget. A clock or countdown built with JavaScript updates in the browser. A static text card only changes when you edit and re-upload the file or change it in the widget service.
Can a Notion widget read my Notion databases?
No. An embed is a separate web page and cannot access your Notion workspace data. Reading Notion data requires a separate API integration, which is outside the scope of a simple embed.
Why does my widget show a blank box in Notion?
The most common causes are an insecure HTTP URL, a private or login-protected file, or a host that blocks embedding. Open the URL directly in a browser to check it loads publicly.
Can I use a widget on the Notion mobile app?
Embed blocks appear in the mobile apps, but rendering can differ from desktop. Test the widget on your phone and simplify the layout if it does not display correctly.
Do I need a paid host for a Notion widget?
No. Free static hosting options such as GitHub Pages or Netlify are enough for a small HTML widget. The key requirement is a public HTTPS URL.