Embeddable Calculator Widgets

Add Fileforia's free discount calculator to your website, blog or documentation. Choose between an iframe (simplest) or a script tag (lighter, no iframe border). Both are free, require no sign-up, and include a “Powered by Fileforia” attribution link.

Last updated: 2026-10-13

Live preview

This is exactly what your visitors will see.

Embed codes

Iframe embed

Simplest option. Works everywhere HTML is allowed. The calculator runs in an isolated frame.

<iframe
  src="https://fileforia.com/embed/discount-calculator?theme=light&accent=%23c8a45d&lang=en&currency=USD"
  width="380" height="520" frameborder="0" loading="lazy"
  title="Discount Calculator"
  style="border:1px solid #e5e7eb;border-radius:12px;max-width:100%"
></iframe>
<p><a href="https://fileforia.com" className="text-gold-text underline-offset-4 hover:underline">Discount calculator</a> by Fileforia</p>

Script embed

Lighter — no iframe border or sandbox overhead. The widget renders inline on your page.

<div id="fileforia-calc"></div>
<script src="https://fileforia.com/widgets/discount-calculator.js"
        data-target="fileforia-calc"
        data-theme="light"
        data-accent="#c8a45d"
        data-lang="en"
        data-currency="USD"
        data-price="100"
        data-discount="20"
        defer></script>
<p><a href="https://fileforia.com" className="text-gold-text underline-offset-4 hover:underline">Discount calculator</a> by Fileforia</p>

Customization options

Append these query parameters to the iframe URL, or set the matching data-* attributes on the script tag.

ParameterDefaultValues
themelightlight, dark, minimal
accent#c8a45dAny hex color (URL-encoded)
langenen, fr, es, de, ar
currencyUSDUSD, EUR, GBP, MAD, AED, SAR, CAD, AUD, CHF, INR, JPY, TRY, BRL, MXN
price100Any positive number
discount200–100

Usage terms

  • Free for personal and commercial use. No attribution fee, no API key, no rate limits for normal traffic.
  • The “Powered by Fileforia” attribution link must remain visible and clickable inside the widget. Do not hide, obscure or remove it.
  • Do not modify the widget's calculation logic or present incorrect results.
  • The widget is provided as-is. Fileforia is not liable for any decisions made based on its output.
  • We may update the widget's appearance or behaviour. The embed URL will remain stable.
  • Questions? Contact [email protected]

← Back to Fileforia