HTML Form Action & Method Generator — GET or POST, ready to copy.
Enter your endpoint, choose GET or POST, and optionally add an access key and field names. The generator writes the action and method attributes for you and shows a live preview. Everything runs in your browser, so no form data is sent anywhere.
Added as a hidden access_key field.
Separate names with commas or new lines.
HTML snippet
<form action="https://splitforms.com/api/submit" method="POST">
<label for="name">Name</label>
<input id="name" name="name" type="text" />
<label for="email">Email</label>
<input id="email" name="email" type="email" />
<label for="message">Message</label>
<textarea id="message" name="message" rows="4"></textarea>
<button type="submit">Send</button>
</form>Live preview
Preview only — submitting here does not send any data.
Should I use GET or POST for a form action?
Use POST for any form that collects personal details, messages, files or an access key. Use GET only for search and filters, where the values are not private and a shareable URL is useful.
How do I add an access key and field names?
Type the key in the access key box and the generator adds a hidden access_key input. List your field names separated by commas or new lines, and each one becomes a labelled input. Names such as email, phone and message get the matching input type.
Need a backend for the endpoint? Point the action at https://splitforms.com/api/submit and read the form action URL guide or build the whole form with the HTML form generator.
HTML form action generator FAQ
What is a form action and method?
The action attribute is the URL that receives the form data. The method attribute is how the browser sends it: GET puts the fields in the URL query string, while POST puts them in the request body. Set both on the <form> element.
Should I use GET or POST for a form?
Use POST for contact forms, signups, file uploads and anything that creates or changes a record. Use GET only for search boxes and filters, where the values are not private and you want the result to be shareable as a URL.
Why is GET risky for a contact form?
GET appends every field to the URL, so names, email addresses, messages and access keys can appear in browser history, server logs, analytics and shared links. That is why contact and lead forms should use POST.
How do I add an access key to an HTML form?
Add a hidden input inside the form: <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY" />. The generator adds it for you when you type a key. Keep the form method set to POST so the key is not exposed in the URL.
Does this tool send my form data anywhere?
No. The generator and the live preview run entirely in your browser. The preview stops the submit event, so nothing is sent to splitforms or any other server while you build the snippet.
Need an endpoint that accepts the form?
Point the action at splitforms and every submission is filtered for spam, stored in your dashboard and emailed to you. Free covers 500 submissions total, no credit card.
Get a free splitforms key →More free form tools
Form backend cost calculator
Enter monthly submissions and compare the cheapest listed plan across eight form backends.
Form conversion rate calculator
Enter form views and submissions to get your contact form conversion rate, plus leads needed and total value for a target.
Email deliverability checker
Enter a domain to check its SPF, DMARC and MX records and get a plain-English fix for each.
SPF record checker
Look up a domain's SPF record, see each mechanism explained and count DNS lookups against the 10-lookup limit.
DMARC record generator
Pick a policy and report address and copy a ready _dmarc TXT record.
DMARC checker
Look up a domain's DMARC record and see the policy and every tag explained.
DKIM record checker
Enter a domain and selector to check its DKIM key, with presets for common senders.
SPF record generator
Tick your email providers and copy one SPF TXT record with a lookup count.
Contact form spam checker
Paste form HTML to audit its honeypot, endpoint, CAPTCHA markers and spam resistance.
Honeypot field generator
Generate a hidden anti-spam input with your chosen name and hiding technique.
HTML form validation tester
Paste a form snippet to inspect required, type=email, minlength and pattern checks in a live preview.
Form action URL tester
Check a form action URL for reachability, CORS headers, POST acceptance and backend.
Email obfuscator
Encode your email so spam scrapers can't read it but people can still click it.
Mailto link generator
Build a mailto: URL with recipients, CC, BCC, subject and a pre-filled body.
Alphanumeric regex tester
Test letters and numbers only, spaces, handles and Unicode; copy validation patterns.
Email regex tester
Test the WHATWG email regex and two other patterns against edge cases and your own list.
Phone number regex tester
Test numbers against E.164, US/Canada and digits-only patterns and copy code snippets.
ZIP code regex tester
Test US ZIP, ZIP+4, Canadian and UK postal codes and copy the regex or HTML pattern.
Number regex tester
Test digits, decimals, money and thousands separators and copy validation patterns.
Date regex tester
Test dd/mm/yyyy, mm/dd/yyyy and ISO dates with leap-year checks and copy JS or HTML patterns.
Name regex tester
Test name patterns for O'Brien, accents and Unicode letters; copy JS or HTML pattern snippets.
Username regex tester
Test username presets for GitHub, Instagram and X; check reserved names and copy JS or HTML patterns.
IP address regex tester
Test IPv4, IPv6, CIDR and private-range patterns and copy JS or HTML pattern snippets.
URL regex tester
Test website URLs against http(s) regex patterns and new URL(), and copy JS, HTML or PHP code.
HMAC-SHA256 generator
Generate and verify webhook signatures for common providers in your browser.
URL encoder and decoder
Encode text, build an x-www-form-urlencoded body or parse a query string.
Password regex generator
Pick strength rules, test passwords live and copy the regex or HTML pattern.
UTM builder
Build campaign URLs with UTM parameters, tag a CSV in bulk and check tagged links.
HTML to JSX converter
Paste HTML and get JSX or a working React/Next.js form component.
Image to Base64 converter
Convert images to Base64 data URLs in your browser and copy HTML and CSS snippets.
Base64 to image converter
Paste a Base64 data URI to preview and download the decoded image.
Base64 decode & encode
Decode Base64 to readable UTF-8 text or encode text to Base64, locally in your browser.
URL to Base64 converter
Fetch a direct image URL in your browser and get its Base64 data URL.
HTML form generator
Build a form visually and copy HTML, React JSX or Tailwind code.
AI form generator
Describe your form in plain English and copy working HTML.
Time regex tester
Test 24-hour, AM/PM and ISO time patterns and copy JavaScript, Python or HTML snippets.
Credit card regex tester
Test Visa, Mastercard 2-series, Amex and more card patterns with brand detection and a Luhn check.
Hex color regex tester
Test #RGB, #RRGGBB and alpha hex colors plus rgb() and hsl() values with live color swatches.
UUID regex tester
Test UUID v1-v8, nil/max and GUID formats with version and variant checks; copy JS or HTML patterns.