---
title: "How to embed free odds widgets on your website"
description: "Add free odds widgets and betting calculators to your site. Get the code, paste it into WordPress, Ghost, Wix or Squarespace, and fix common problems."
url: "https://oddskeepr.com/guides/how-to-embed-odds-widgets"
updated: "2026-11-20"
---

# How to embed free odds widgets on your website

Add free odds widgets and betting calculators to your site. Get the code, paste it into WordPress, Ghost, Wix or Squarespace, and fix common problems.

You can embed odds widgets from OddsKeepr on any site that accepts HTML: a club blog, a fan site, a match preview or a guide to betting maths. Each widget is a small frame with its own code. You copy the code, paste it into your page and the widget keeps itself up to date.

This guide covers which widget to pick, where to find its code, how to paste it into the common website builders and what to do when something looks wrong. All of it is free, with no account.

## Which widget to embed

There are two kinds. The market widgets show what the betting market thinks of a game or a US title race; the calculators are tools your readers use themselves.

| Widget | What it shows | Good for |
| :--- | :--- | :--- |
| A league's next games | The next three games, each outcome's fair chance as a percentage with a bar | A team or league page that stays current |
| One game | A single game's fair chances, with its kickoff time | A match preview or report |
| A title race | The favourites in a US championship winner market (NFL, NBA, MLB, NHL, college football and basketball), each team's fair chance | A season preview or a title-race column |
| A calculator | The no-vig, expected value, parlay, odds converter or Kelly calculator | A guide to odds, value or staking |

### What a fair chance is

The market widgets never show a sportsbook's price. They show the **fair chance**: the chance the prices of the sportsbooks licensed in the country you choose imply once each sportsbook's margin is taken out, as a percentage. The percentages in a game add up to 100%. The [fair odds guide](https://oddskeepr.com/guides/fair-odds.md) shows how it is worked out, and the [implied probability guide](https://oddskeepr.com/guides/implied-probability.md) explains how a price turns into a chance.

A fair chance describes the market. It is not a prediction, and nothing in a widget urges anyone to bet.

## Where to get the code

1. **A league or a title race:** open the [widgets page](https://oddskeepr.com/widgets), choose the country your readers are in and then the widget. A live preview shows what your readers will see.
2. **One game:** go to the game's page on OddsKeepr and open **Embed this game on your site**, near the end of the page. The box is there until kickoff. After kickoff the widget shows the chances from the closing prices.
3. **A calculator:** the [widgets page](https://oddskeepr.com/widgets) lists all of them, each with its code and a preview link. You can try them first on the [calculators page](https://oddskeepr.com/calculators).

Press **Copy code** to copy it. If your browser refuses, the code is selected so you can copy it by hand.

### An example: the odds converter

This is the complete code for the odds converter widget, exactly as the widgets page gives it. You can copy it from here and paste it into your page.

```html
<iframe src="https://oddskeepr.com/embed/calculators/converter" title="Odds converter" width="100%" height="480" style="border:0;max-width:560px" loading="lazy" sandbox="allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox"></iframe>
<script>addEventListener('message',function(e){var d=e.data,f=document.getElementsByTagName('iframe'),i;if(e.origin!=="https://oddskeepr.com"||!d||d.op!=='embed-height'||typeof d.h!=='number')return;for(i=0;i<f.length;i++)if(f[i].contentWindow===e.source)f[i].style.height=Math.min(Math.max(Math.ceil(d.h),120),2400)+'px'})</script>
<p>Odds converter by <a href="https://oddskeepr.com/calculators/converter" rel="nofollow">OddsKeepr</a></p>
```

On your page it shows the converter below, in a frame with the credit line under it. Try it here: type a price in any format to see it in the other two, with the chance it implies.

Calculator: [Odds converter](https://oddskeepr.com/calculators/converter)

### What the code contains

Every widget's code has the same three lines, and each one matters:

- **The frame**, the line that starts with `<iframe`. It shows the widget at full width up to 560 pixels, with a fixed height to fall back on. The `sandbox` part stops the widget from doing anything to your page beyond showing itself.
- **A short script**, the line that starts with `<script>`. It listens for the widget telling your page its height and sizes the frame to fit, so there is never a scrollbar inside it. It only accepts that message from OddsKeepr, and only for the frame that sent it.
- **The credit line** under the frame, such as "Odds converter by OddsKeepr", where only OddsKeepr is a link, marked `nofollow`. It tells your readers where the figures come from; keeping it is up to you.

Only the addresses, the title, the height and the credit's words change from one widget to the next.

## Paste the code into your site

The rule on every platform is the same: paste the code into a block or view that takes raw HTML, never into a normal paragraph. Then preview the published page, because many editors don't run embedded frames while you edit.

### WordPress

In the block editor, add a **Custom HTML** block where the widget should go and paste the code into it. Use **Preview** to see the widget. In the classic editor, switch to the **Text** tab before you paste.

On a self-hosted site, WordPress removes frames and scripts from posts by users without the unfiltered HTML permission. By default only administrators and editors have it, and on a multisite network only super admins. If the widget disappears when an author saves the post, ask an editor or administrator to add it.

On WordPress.com, frame and script tags only work on a plan with plugins and hosting features. On the other plans the code is stripped when you save.

### Ghost

On a blank line, press the **+** button, choose **HTML** and paste the code into the card. The editor may show an empty box; the widget appears on the published post.

Frames don't show in email newsletters, so subscribers who read the post by email won't see the widget. Add a sentence with a link to the page for them.

### Blogger

Open the post, switch the editor from **Compose view** to **HTML view**, paste the code where the widget should go and switch back. Preview the post to see the widget.

### Squarespace

Add a **Code** block, paste the code and save. Squarespace runs frames and scripts in code blocks only on some plans; on the others the block shows the credit link but no widget. Your plan's feature list says which you have.

### Wix

In the editor, open **Add Elements**, then **Embed code**, and add the **Embed HTML** element. Choose **Enter Code**, paste the code and apply it.

Wix puts your code inside a frame of its own, so two things differ:

- The element keeps the size you give it in the editor. Drag it to the widget's height: about 520 pixels for a league's games, 300 for one game, more where the league has draws.
- A link inside the element sits in Wix's frame, not on your page. Leave the credit line out of the element and, if you want it, add it as text under it.

### Substack, Medium and email

These don't accept frame code in posts or emails. Link to the page on OddsKeepr instead, with words such as "the market's fair chances for Saturday's game".

## Choose the colours, odds format and size

Each widget follows your reader's light or dark setting. To fix the colours, add `?theme=light` or `?theme=dark` to the end of the address in the frame line, inside the quotes.

The calculators show their results in decimal odds. For American or fractional results, add `?odds=american` or `?odds=fractional` the same way. To set both, join them with `&`: `?theme=light&odds=american`.

The frame takes your column's full width up to 560 pixels. For a narrower widget, change `max-width:560px` in the frame line to a smaller number; the widget rearranges itself down to the width of a phone.

## Fix common problems

**The code shows on the page as text.** It went into a normal paragraph. Delete it and paste it into an HTML block, card or view.

**The widget vanishes after saving.** Your platform removed the frame. On WordPress, ask an editor or administrator to add it, or check your WordPress.com plan. On Squarespace, check that your plan runs code in code blocks.

**There is a scrollbar inside the widget, or it is cut off.** The script was removed, so the frame kept its fixed height. Put the script line back, or make the number after `height=` in the frame line larger.

**The frame is empty or shows an error.** Your site's security settings may block frames from other sites. Ask whoever runs the site to allow frames from the OddsKeepr domain (the `frame-src` part of a content security policy). Some privacy extensions block frames too, so try another browser.

**The widget says it isn't available, or shows a page-not-found message.** The league or country stopped being offered, or the widget's address was changed by hand. Get the code again from the [widgets page](https://oddskeepr.com/widgets).

**It says there are no games in the next 7 days.** The league is between games or out of season. The widget fills itself again once games are scheduled; there's nothing to change.

**It says the prices are out of date.** The widget could not get fresh prices and shows when they were last updated. It recovers on its own.

## How the widgets treat your readers

- **Nothing is stored.** No cookie, no local storage, no account and no key.
- **No sportsbooks.** The market widgets name no sportsbook, show no price and link to none. Each game opens its page on OddsKeepr in a new tab, and every market widget links to help with gambling.
- **No access to your page.** The frame runs in a sandbox: it cannot read your page, move your readers to another page or submit a form.
- **Kept current.** The market widgets follow the site's prices, which are checked every few minutes, and say when the prices last changed.

The widgets show what the betting market expects, not what will happen. If gambling stops feeling like entertainment for you or someone you know, free and confidential help is listed for every country under [where to get help](https://oddskeepr.com/guides/how-to-check-a-sportsbook-licence#where-to-get-help), and every market widget links to the help for its country.

## Questions

### Are the odds widgets free?

Yes. Every widget and calculator is free to embed, with no account, key or sign-up. The credit line under the frame is welcome but up to you.

### Do the widgets set cookies or track my readers?

No. The widgets store nothing on your readers' devices: no cookies, no local storage and no account. The colours and odds format come from the widget's own address, not from anything saved.

### Can the widget show a particular sportsbook's odds?

No. The market widgets show each outcome's fair chance, worked out from the prices of the sportsbooks licensed in the country you pick, with their margin removed. They never name a sportsbook, show its price or link to it.

### Will an embedded widget slow my page down?

Very little. The frame loads lazily, so the browser fetches it only when a reader scrolls near it, and it loads separately from the rest of your page.

### Does embedding a widget affect my SEO?

Search engines treat the widget as a separate page, which is kept out of their results, so it adds no duplicate content to your article. The credit line links only our name, marked nofollow, as search engines ask for links that come with a widget.

### Why can't I find a market widget for Italy?

Italian law restricts gambling advertising, so the market widgets are not offered for Italy. The calculators work everywhere.

## Related

- [Fair odds: how to remove the vig and find no-vig prices](https://oddskeepr.com/guides/fair-odds.md)
- [Implied probability and how to work it out from any odds](https://oddskeepr.com/guides/implied-probability.md)
- [Calculators](https://oddskeepr.com/calculators)
- [How to compare odds and why the best price matters](https://oddskeepr.com/guides/how-to-compare-odds.md)

## Responsible gambling

Gambling can be addictive. If it stops being fun, free and confidential help is available.

- [Find help in your country](https://www.gamblingtherapy.org)

OddsKeepr compares prices. It doesn't take bets or hold funds. OddsKeepr is independent and isn't affiliated with or endorsed by any sportsbook or exchange; their names are their owners' trademarks.
