Free Embeddable Widgets
Put a live military spending counter on your site
Three live counters — US military spending, world military spending, and the US–Iran war cost — in sidebar, banner, and full-width sizes, light or dark. Pick your options, copy one snippet of HTML. No scripts, no dependencies, no cost.
Choose your counter
Pick which figure you want to show, how much room it has on your page, and whether it should sit on a dark or light background.
Check the preview
This is exactly what your readers see, at the exact size you picked. The counter ticks live; the credit line beneath it is plain text on your own page, not part of the embed.
Live US military spending counter by MilitarySpend
That second line is the whole deal: a normal link on your page, outside the iframe, so readers and search engines can both follow it back to the source.
Copy the code
Paste both lines anywhere in your page's HTML — a post body, a sidebar widget, a CMS embed block. The counter updates every second on its own; you never have to touch the number again.
<!-- MilitarySpend live counter -->
<iframe src="https://militaryspend.org/widget/us-military-spending?theme=dark&size=300x250" width="300" height="250" style="border:0;max-width:100%" scrolling="no" frameborder="0" loading="lazy" title="US military spending — live counter by MilitarySpend.org"></iframe>
<p style="font:12px/1.5 system-ui,sans-serif;margin:6px 0 0"><a href="https://militaryspend.org/us-military-spending-2026">Live US military spending counter by MilitarySpend</a></p>Why two lines?
The first line is the counter itself. The second is a plain-text credit link back to the underlying tracker. Please keep both — the credit line is the only thing we ask for in exchange, and it tells your readers where the figure comes from.
What each counter tracks
US military spending
Live counter of US military spending in 2026, ticking from the $1.04 trillion national defense total.
See the full trackerWorld military spending
Live counter of global military spending in 2026, derived from SIPRI, IISS and NATO expenditure data.
See the full trackerUS–Iran war cost
Live counter of the estimated cost of Operation Epic Fury, the 2026 US–Iran war.
See the full trackerWho it's for
Journalists
Illustrate the running cost of a war or a defense budget inside news stories and explainers with a self-updating figure.
Bloggers
Add a live data point to opinion pieces and analysis without maintaining any numbers yourself.
Researchers & educators
Embed a sourced estimate on course pages, briefings, and dashboards that cite the underlying methodology.
Licence, sources & privacy
The widgets are free to embed on any site, commercial or not, as long as the attribution link stays intact. Figures come from the same models that drive our public trackers — SIPRI, IISS and NATO expenditure data for the world clock, DoD and CRS budget documents for US spending, and CSIS, Pentagon briefings and the Penn Wharton Budget Model for the US–Iran war cost. Full workings are on our methodology page. The counter is a sandboxed iframe: it sets no cookies on your domain and runs no tracking scripts on your page.
Distribution
Join the Weekly Brief
Weekly briefings, tracker revisions, and formal report launches from the MilitarySpend research desk.