Free prayer times widget for your mosque website
Add daily prayer times or a Hijri calendar to your mosque site with one iframe. Free, no signup or key, 7 languages, light and dark themes.
On this page
The prayer times widget builder at qurangallery.com/prayer/widgets gives you one line of HTML that shows daily prayer times or a Hijri calendar on your mosque or community website. It is free, with no signup and no key, in 7 languages and light or dark themes.
You pick a city and a few options, copy the code and paste it where the widget should appear.
Build your widget
Under Build your widget:
- Search for your City, or tap one of the Popular cities. Until you pick one, the page says to search for a city to generate your code.
- Choose the Widget type: Daily prayer times or Hijri calendar.
- Set the options.
- Press Copy code.
The Live preview beside the builder is the widget itself, running now.
Options
- Theme — Auto, Light mode or Dark mode.
- Language — English, Arabic, Urdu, Indonesian, Turkish, Bengali or French.
- Asr calculation (madhab) — Default here, Hanafi or Shafi. Prayer times widget only.
- Time format — 12-hour or 24-hour. Prayer times widget only.
The calculation method follows each country’s convention, so you don’t pick one. The widget uses the same defaults as the city’s page on Quran Gallery.
The code you paste
The builder produces an iframe. This example is for London, in English, with the prayer times widget:
<iframe src="https://qurangallery.com/prayer/widget?type=prayer-times&country=united-kingdom&city=london" width="100%" height="470" style="max-width:min(380px,100%);border:0;border-radius:12px" loading="lazy" title="Prayer Times — Quran Gallery"></iframe>The prayer times widget is 470 px high; the Hijri calendar is 540 px high. Both are at most 380 px wide, and fill a narrower column. Paste the code into any page that accepts HTML.
Choosing a language other than English adds its code to the address, for example /prayer/fr/widget for French. The theme, Asr school and 24-hour format are added only when you change them from the defaults.
What visitors see
The prayer times widget lists today’s times for your city and counts down to the next prayer. The Hijri calendar widget shows a month of the Hijri calendar with Islamic events, following your country’s moon-sighting authority. A link in the widget opens the full page on Quran Gallery.
The code pins the city, so every visitor to your page sees the same city’s times.
Does it stay current?
Yes. The widget works out the day’s times each time it loads, so you never edit the code again. The server may reuse an answer for up to ten minutes.
Free, and no key
The builder states no signup, no API key and no limits. The widget is meant to be embedded on other sites. It asks search engines not to index the frame itself.
Need data instead of a widget?
If you want to build your own display, use the prayer times API. To let people add the times to their own calendar, see calendar sync.
See also
- Prayer times — the full timetable the widget is drawn from.
- Calculation methods — how each country’s default is chosen.
- Hijri calendar — the page behind the calendar widget.
Next steps
Questions
Is there a free prayer times widget for a mosque website?
Yes. The builder at qurangallery.com/prayer/widgets gives you one line of HTML to paste into your site. It is free, with no signup and no API key.
What can I embed?
Two widgets: Daily prayer times, and a Hijri calendar. Pick one under Widget type.
Do the times update on their own?
Yes. The widget works out the day's times each time it loads, so there is nothing to maintain after you paste the code.
Which languages are supported?
Seven: English, Arabic, Urdu, Indonesian, Turkish, Bengali and French. Choose one under Language.
Can I change the Asr time or the 12 or 24-hour clock?
Yes, for the prayer times widget. Asr calculation (madhab) offers Default here, Hanafi or Shafi, and Time format offers 12-hour or 24-hour.
Will it match my city's calculation method?
The calculation method follows each country's convention, with Hanafi and Shafi Asr options. It uses the same default as the city's page on Quran Gallery.
Can it support a dark site?
Yes. Theme can be Auto, Light mode or Dark mode.