Add a character counter to any field input
Adds a live character counter to any form field. As the user types the counter updates in real time. When the limit is reached the input stops accepting new inputs.

Webflow's native form fields give users no indication of how much they have typed or how much space they have left. There is no built-in character counter, no way to set a visible limit, and no warning state when a user is approaching or has exceeded the allowed length - without writing custom JavaScript or adding a third-party tool.
The Fractional Character Count 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 Character Count Kit works by wrapping your existing form field and a text element in a parent div. No changes to your form structure, no JavaScript knowledge required, and no impact on how Webflow handles form submissions.
- The counter updates on every keystroke in real time. As the user types the count element reflects the current character total instantly - no delay, no page interaction required.
- Setting a character limit is optional. When a limit is set the counter displays remaining characters rather than total characters typed. When the limit is reached the field stops accepting new input automatically.
- The warning state is fully yours to design. When a user hits the character limit, the Kit applies a CSS class to the counter element. Style it however you want directly in Webflow — change the colour, add an icon, or animate it.
- Multiple instances work independently on the same page. Each counter group is isolated so a form with three fields and three counters behaves exactly as expected with no interference between them.
- This 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
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 a live character counter to form fields - Managed by Fractional Creative -->
<script data-fc="formchar" data-fc-version="1.0.0" data-fc-consent="essential" src="https://cdn.fractionalcreative.io/kits@1/kits.js"></script>Build your form as usual
On your website, add a form to your page and build all of your fields inside it as you normally would.
Add these required custom attributes to the elements

Wrap each field you would like to have a counter with a DIV and add the custom attribute to the DIV. This creates a group that acts as an individual instance of the counter. You can have multiple of these in the same form, page, and website.

Inside your new group you will have a single form input. Add the custom attribute to this input.

In your group, add a Text Element. Add the custom attribute to this new text element. This will automatically update based on the users inputs - in real time!

Add the limit attribute to the field input you want to be restricted. If added, the counter will display as "45/200" for example. When the user reaches the limit, the input stops accepting characters and the class "fc-formchar-limit-reached" is applied to the count element. You can style this class anyway you would like directly within webflow.
Without the Kit
With the Kit
Everything you’re probably wondering.
Yes. Add the fc-formchar = field attribute to any input or textarea element inside the group wrapper and the counter works automatically.
No. The Fractional Character Count Kit enforces the limit visually by stopping new characters from being entered once the limit is reached. The value submitted through the form is always the real text the user typed - nothing is modified, stripped, or altered before submission.
Yes. Each counter group is fully isolated. Wrap each field and its counter in a separate parent div with fc-formchar = group and each one works independently regardless of how many exist on the same page.
Yes. The counter element is a standard Webflow text element — style it however you want in the Designer. When the character limit is reached FC FormChar applies the class fc-formchar-limit-reached to the counter element. Add that as a combo class in Webflow and style the warning state independently.
The counter displays the total number of characters typed with no upper limit — for example 45. When a limit is set it displays as 45/200 showing both the current count and the maximum.
Yes. Add the attributes to form fields on any CMS template page and the counter works on every CMS item page automatically.
The form field continues to work exactly as normal. Users can still type and submit the form — they simply will not see the character counter. This Kit degrades gracefully, meaning it will never block form functionality under any circumstance.
Yes. Fractional Character Count does not interfere with Webflow's native required field validation. A field can have both a character counter and be marked as required — both work independently.
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.

