Copy any text to clipboard in Webflow
Add a custom copy to clipboard button to any element on your Webflow site. Connect a trigger, a source, and an optional confirmation message instantly.

Webflow has no built-in way to let users copy text from your page with a single click. Whether you are displaying a discount code, a snippet of code, a wallet address, or any other piece of text users need to copy - there is no native solution without writing custom code.
The Fractional Copy Kit solves this with a single lightweight script and a set of custom attributes applied directly in the Webflow Designer.
Here is what you need to know:
- The Fractional Copy Kit works by grouping three elements together inside a parent wrapper div - a source element containing the text to copy, a trigger element the user clicks, and an optional confirmation message that appears after copying. No JavaScript knowledge required and no impact on any other element on the page.
- The trigger can be any element. A button, a div, an icon - whatever fits your design. (Though we do recommend making it a DIV as this will not create an empty button on your page). Add the trigger attribute and clicking it copies the source text automatically.
- The confirmation message is fully optional. When included, it appears briefly after the user clicks the trigger then hides again automatically. Set the display duration with a single attribute on the wrapper. Style the confirmation element however you want directly in Webflow.
- Multiple copy groups can exist on the same page independently. Each group is fully isolated - a page with three different copy buttons each copying different text works exactly as expected with no interference between them.
- The Fractional Copy Kit uses the native browser Clipboard API. No external libraries, no third-party services, and no data ever leaves the user's browser.
- The Fractional Copy Kit is fully GDPR, CCPA, and PIPEDA compliant. It sets no cookies, makes no external requests, and collects no personal data of its own.
Add this <script> inside the <head> tag of your page or project
This script is the universal script: you only need to include it once, even if you have multiple instances on the page.
<!-- This script is to add copy to clipboard functionality - Managed by Fractional Creative -->
<script data-fc="copytext" data-fc-version="1.0.0" data-fc-consent="essential" src="https://cdn.fractionalcreative.io/kits@1/kits.js"></script>Add these required custom attributes

Add a DIV block to your project and add the required custom attributes in this step. This DIV will hold the item to be copied, as well as the trigger and confirmation messages. Creating your group will allow you to have isolated instances of this Kit on the same page. (This page uses the Fractional Copy Kit!)

Your source for the copy effect can be Text, Rich Text, Code Block, Quote, and other text based elements. Simply add the custom attribute in this step to target it for copy.

We recommend using a DIV element that is using your class structure of your buttons. This prevents having broken links throughout your page/site.

If you would like to display a confirmation message to your user when an item is clicked, create a new DIV element and add the custom attribute from this step. Once you have designed the div and added any items inside you would like, set the display to NONE.

The default duration for the confirmation message to be shown to your user is three (3) seconds. If you would like to modify how long to show this message to your users you can add the custom attribute in this step. The duration timer is set in mili-seconds, so if you would like to show for five (5) seconds the value would be 5000.
Try it out!
Everything you’re probably wondering.
It produces a similar visual effect but it is not the same thing. A password field is a specific HTML input type with browser-level security behaviours. This Kit works on standard text inputs and replaces characters visually as the user types - it is designed for use cases like access codes, licence keys, and PIN numbers rather than passwords, which should always use a dedicated password input type.
No. The masking is entirely visual. The value stored in the field and submitted with the form is always the real unmasked text the user entered. Your Webflow form notifications, Zapier flows, and any other integrations receive the actual value exactly as typed.
This Kit is designed for standard text inputs. Password input types already have browser-level masking built in — applying this Kit to a password field is unnecessary and not recommended.
Yes. Add fc-fieldmask to as many input fields as you need. Each field is independently masked and does not affect any other field on the form.
The masked characters are what is displayed so if a user selects and copies the field content they will copy the mask characters, not the real value. This is intentional behaviour for sensitive input fields.
Yes. This Kit does not interfere with required field validation or any other native Webflow form behaviour. A masked field can still be marked as required and validation works exactly as expected.
The input field continues to work exactly as normal as a standard unmasked text field. Users can still type and submit the form — This Kit degrades gracefully, meaning it never blocks form functionality under any circumstance.
Yes. This Kit sets no cookies, uses no localStorage, makes no external requests, and collects zero personal data. No consent prompt is required.
Need more than a Webflow Kit? Hire a Digital Agency.
Fractional Creative is a digital agency. We build Webflow websites, design brands, manage Meta and Google ad campaigns, and build custom automations, and more. Start saving with Fractional services.

