Free embeddable widgets
Free Prayer Times & Hijri Date Widgets for Your Website
Pick a widget below, set your location, and copy the code. Free forever — no API key, no signup, no tracking, no ads.
Build your widget
Today's six times — Fajr, Sunrise, Dhuhr, Asr, Maghrib, and Isha — with the next prayer highlighted and a live countdown. ISNA, MWL, Umm Al-Qura and more; standard or Hanafi Asr.
Live preview — the real widget, running on this page.
Today's date on the Hijri calendar, with the Gregorian date below it. Uses your visitor's own device calendar — no network requests, updates automatically every day.
Live preview — the real widget, running on this page.
A calm countdown to the next Ramadan. Once Ramadan begins it switches to “Day N of Ramadan”, then shows an Eid al-Fitr greeting. Counts are estimates — moon sighting can shift the date by a day.
Live preview — the real widget, running on this page.
Suhoor and iftar times for Ramadan 2027, for 251 cities. Show just today’s times, or the full 29/30-day month with today highlighted.
Live preview — the real widget, running on this page.
Free forever. No API key, no tracking, no ads. The embed code includes one small credit link to Niyat, written as plain HTML so it still shows if JavaScript is off. You can delete it if you'd rather not include it.
Run a mosque?
Email us your mosque's jamaat times and we'll add them to your page in the Niyat mosque directory — free, and your community can then find them in the app.
Why embed it
Free prayer times widget for your mosque website
Most mosque websites still list prayer times as a static image or a PDF that someone forgets to update. A calculated widget never goes stale: it recomputes Fajr through Isha for every day of the year, for your exact coordinates, in your timezone, and highlights the next prayer with a live countdown so visitors instantly know how long they have.
You pick the calculation method your community follows — ISNA and the Muslim World League through Umm Al-Qura, Dubai, Karachi, and the Moonsighting Committee — plus standard or Hanafi Asr. The widget renders inside an isolated shadow container, so your site's fonts and styles cannot break it and it cannot break them. There is nothing to maintain: no feeds to refresh, no API key to renew, no account.
It is a quiet fit anywhere: a mosque's homepage sidebar, an Islamic school's footer, a Ramadan landing page, a community newsletter archived as HTML. Paste the tag once and forget it.
Installation
How to add it to your site
Configure the widget above, copy the embed code, and paste it where the widget should appear. The steps differ slightly by platform.
WordPress
- Open the page or post in the editor.
- Add a Custom HTML block where you want the widget.
- Paste the embed code into the block.
- Click Preview to check it, then Update or Publish.
- WordPress strips script tags out of normal paragraph text, so always use the Custom HTML block — or a header/footer plugin such as WPCode for a site-wide placement.
Wix
- Open your site in the Wix Editor.
- Click + (Add Elements), choose Embed Code, then Embed a Widget.
- Paste the embed code into the code field and click Apply.
- Drag the box to position it; the widget fills the box width.
- Save and publish your site.
Squarespace
- Open the page and click Edit.
- Click an insert point and add a Code block.
- Paste the embed code into the block.
- Make sure Display Source is off, then click Apply.
- Save the page. JavaScript in a Code Block needs the Core plan or above.
Google Sites
- Open your site at sites.google.com and select the page.
- Click Insert in the right-hand panel, then Embed.
- Choose the Embed code tab and paste the snippet.
- Click Next, check the preview, then Insert.
- Click Publish in the top right.
Shopify
- Go to Online Store → Themes → Customize.
- Open the page you want, click Add section, then search Custom Liquid.
- Paste the embed code into the Liquid box.
- Click Save.
- The page editor's own HTML mode can strip script tags, so use the Custom Liquid section instead.
Plain HTML
- Copy the embed code from the configurator above.
- Open your HTML file where your site's files live.
- Paste the snippet at the exact spot the widget should render.
- Save and upload the file. For the fastest loads, place it just before </body>.
FAQ
Frequently asked questions
Is this really free?
Yes. The widgets are free forever, with no API key, no signup, and no ads. The embed code includes a small credit link to Niyat, written as plain HTML so it works even without JavaScript. You can remove it if you prefer.
Does it track my visitors?
No. The widgets load no analytics, set no cookies, and collect no data about your visitors. The prayer times widget downloads one small calculation library from niyatapp.com and then does all of its math in your visitor's browser.
Will it slow down my site?
No. Add the async attribute and the script loads in the background without blocking your page. The prayer times widget is a few kilobytes, and the calculation library it uses is fetched once and cached by the browser. The Hijri date and Ramadan countdown widgets make no network requests at all.
Can I show my mosque's jamaat (iqama) times instead of calculated times?
Not yet through the widget itself, which shows calculated prayer times. Email us your mosque's jamaat times and we will add them to your page in the Niyat mosque directory.
Does it work on WordPress, Wix, and Squarespace?
Yes. Any platform that accepts a custom HTML or embed block can host the widget: WordPress Custom HTML blocks, Wix custom embeds, Squarespace code blocks, Google Sites embeds, a Shopify Custom Liquid section, or plain HTML. See the step-by-step guides above.
How is this different from other prayer times widgets?
Most embeddable prayer-time widgets are an iframe, or need an account before they give you an embed code. This one renders in a shadow DOM, so your site's CSS cannot break it and it cannot break your site's CSS, and there is no account to create. See the full comparison.
Get adhan reminders and a qibla compass on your phone
The Niyat app brings calculated prayer times, adhan notifications, a qibla finder, and the full cited dua library with you.
Want the data in your app? Get Niyat.
Keep exploring