splitforms.com
free · no signup · runs in your browser

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.

MethodWhere data goesBest for
POSTRequest bodyContact, signup, booking, upload and payment forms
GETURL query stringSearch boxes, filters and sort controls

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 a month, no credit card.

Get a free splitforms key →