# Floating Label Generator > Make form fields with floating labels and copy the code. Type the fields you need, one per line, paste the HTML of a form you already have, or start from a sign-up, contact or delivery address example; see working fields at once; choose outlined, filled or underline, the label movement, when answers are checked, the error shake, the success check mark, a letter count, colours, corners, text size and button text; and copy HTML + CSS + JS, HTML, CSS, JS or a React component, or download a demo page. Free, no sign-up, runs in the browser. URL: https://floating-label-generator.skillsafe.ai/ ## What it does (free, in the browser) - Reads a field list: one field per line, "(optional)", "(long)" for a message box, "Topic: a, b, c" for a choice, "[email]"-style type hints, and "| help text". Labels such as Email, Phone, Website, Date, Birthday or Message pick their own type; names, addresses, email, phone and passwords get autocomplete hints (new-password on a sign-up form, current-password on a sign-in form). - Reads a pasted form: label for/id pairs, wrapping labels, aria-label, then placeholder or name for unlabelled fields (placeholder-only labels become real floating labels); keeps required, type, name, autocomplete and select options. - Floating label technique: the label follows the field inside a relative wrapper, the field carries placeholder=" ", and :focus / :not(:placeholder-shown) move the label up with transform: translateY() scale(). Dates and choices keep the label up. Outlined (label on the border), filled (tinted box, underline grows from the middle) and underline styles. - Checks (from the forms-inputs skill): label float 150-200 ms, focus border 100-150 ms, no linear easing, error shake 4-6 px for about 300 ms, no errors while typing (check on leaving the field), 16 px text so iPhones do not zoom, contrast for text and labels (4.5:1), borders and focus colour (3:1) and the button text, placeholder-only labels, missing, duplicate and overlong labels, unmarked optional fields. One-press fixes. - The script (no dependencies) checks answers when a field is left or the form is sent, uses the browser's own email, web address, number and pattern checks, shows each field's message in an element tied by aria-describedby, sets aria-invalid, shakes wrong fields, shows a check mark on right ones, counts letters on long answers, focuses the first wrong field and announces how many need attention in a role="status" line. No movement for prefers-reduced-motion. The live preview runs the same function whose source is copied. - Copies HTML + CSS + JS, HTML, CSS, JS or a React component (the same script run from useEffect); downloads the current code or a demo page. Keeps a list of the forms you copied or downloaded (fields and settings). ## Optional AI step (signed-in, metered) "Describe your form instead" sends the description and the field list and returns {summary, name, submit_label?, style?, easing?, float_ms?, focus_ms?, shake?, shake_px?, success_check?, validate_on?, fields[{label, type, required, help, options?}], notes[]}. Choices are written only from the visitor's words. The page clamps settings to range, flags any choice word or help-text number that is not in the visitor's description or fields and any unusual label word, and runs the same check before the suggestion can be applied. API: https://floating-label-generator.skillsafe.ai/api.html (task "form"). ## Source Adapted from the agent skill @dylantarre/forms-inputs (dylantarre/animation-principles by Dylan Tarre, MIT): https://skillsafe.ai/skill/@dylantarre/forms-inputs