Hour Calculator
EN

Embed a Free Hours Calculator on Your Website

Give your visitors or team a working hours calculator, time card, timesheet, overtime calculator or salary converter right on your own page. Select a calculator below, preview it live and copy the HTML snippet — free, without an account and without cookies.

Live preview

How to embed in WordPress, Webflow, Squarespace and HTML

The snippet above works in any content management system or static site that accepts custom HTML:

  • WordPress (Block Editor / Gutenberg & Elementor): Insert a Custom HTML block where the calculator should appear, paste the entire snippet (<iframe>, source link and <script>) and publish the page.
  • Webflow: Drag a custom Embed element from the Add panel onto your canvas, paste the snippet into the code editor, save and publish.
  • Squarespace: Add a Code block to your section, keep the mode set to HTML with Display Source turned off, and paste the snippet.
  • Static HTML & custom templates: Paste the snippet directly into the <body> container where you want the calculator to render.

What is included in the embedded view

  • Clean, focused layout: The embedded view at /embed/<id>/ contains only the calculator and a small credit line — no header, navigation bar or footer.
  • Automatic height via postMessage: Whenever rows are added or results change, the frame sends its current height as { type: 'hc-resize', id, height } so the optional resize script prevents double scrollbars.
  • Light and dark mode: By default the calculator follows the visitor's system preference (prefers-color-scheme). Append ?theme=light or ?theme=dark to lock a fixed color theme.
  • Privacy by design: The embedded frame sets no cookies, does not read or write localStorage and loads no analytics (no Matomo). All calculations happen in the visitor's browser.
  • Source attribution: The snippet includes a plain HTML link below the <iframe> pointing to the calculator on Hour Calculator. Please keep this link intact when publishing the widget.

Frequently asked questions

Is embedding these calculators really free?

Yes. You can embed any of our calculators on company intranets, payroll blogs, HR portals or educational pages at no cost, as long as the source link below the iframe remains intact.

Does the embedded calculator set cookies or track my visitors?

No. The /embed/ pages do not load analytics, do not set cookies and do not use localStorage. Everything a visitor enters stays in memory inside their browser tab.

How does automatic height adjustment work?

Inside the iframe a ResizeObserver measures the calculator and posts a message ({ type: 'hc-resize', id, height }) to the parent window. The small script in the snippet listens for messages from hourcalculator.org and sets the iframe height in pixels.

Can I force light or dark mode to match my page design?

Yes. Select Light or Dark in the configurator above, or add ?theme=light or ?theme=dark to the iframe src URL. Without that parameter the calculator adapts automatically to the visitor's system theme.

More calculators