EN
PortuguêsEnglishEspañol
All tools
Developer tools 100% free

Discount coupon box for websites (one-click copy)

Enter the code, the discount and the expiry date. After the date, the box disappears from the site on its own.

How to use

Thank you so much for helping!

Every donation helps pay for the servers and keeps the tools free for everyone. Pick or type an amount:

Secure payment by Stripe. Opens in a new tab.

Back to Ready-made site blocks

A coupon customers copy with one tap


Available in: PortuguêsEnglish

Advertisement

Discount coupon box for websites (one-click copy): what it is for

A coupon that is easy to copy avoids typos at checkout. Enter the code, the discount, a note and the expiry date, and choose the style: a ticket with cut-out sides, a dashed border or plain.

The button copies the code in one click and shows Copied!, with a message for screen readers; if the browser does not allow it, the code is selected so it can be copied by hand. After the expiry date, the box disappears from the site on its own.

How to use

  1. Enter the code and the discount.
  2. Set the expiry date and style.
  3. Copy the code into your site.

When to use it

  • Online store first-purchase coupon.
  • Holiday campaigns.
  • Thank-you page with a coupon for the next purchase.

Frequently asked questions

How does the copy button work?

It uses the browser clipboard API (navigator.clipboard), which works on HTTPS sites. The button changes to 'Copied!' for two seconds to confirm, and a screen reader message announces the copy.

What if the browser does not allow copying?

The code leaves the coupon selected so the person can copy it with Ctrl+C or a long press, and the code stays visible so it can be typed.

What happens after the expiry date?

The script compares today's date with the expiry date and hides the box once the coupon has expired, so nobody tries a code that no longer works. Remember to turn off the coupon in your store too.

Is it really free?

Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 tools are free and run right in your browser.

Similar tools

The tools are provided as is, without warranty. We are not responsible for the results or for how they are used.