The quick answer
A security.txt file tells security researchers where to report vulnerabilities: a Contact field (mailto: or https:), an Expires date under 1 year out, plus optional Policy, Encryption and Preferred-Languages fields. This generator assembles a valid RFC 9116 file from a plain form, entirely in your browser — nothing uploads.
Why your site needs a security.txt file
A security.txt file is the reception desk for vulnerability reports: a small plaintext file at /.well-known/security.txt that tells anyone who finds a weakness in your site exactly where to send it. Without one, a researcher faces a guess — a security@ mailbox that may or may not be watched, or a contact form three pages deep — and valid reports die there. RFC 9116 standardized the format in 2022, and this generator turns a plain form into a spec-valid file.
Underneath the tool sits the full guide: the workflow from empty form to uploaded file, the exact field syntax, a worked example you can check against the spec, privacy notes and the FAQ that finishes the job.
What the tool builds — and what it never touches
The security.txt Generator is a free, browser-based utility that turns your disclosure details into a valid RFC 9116 file. “Browser-based” is the important part: the generator runs on your machine in JavaScript, so the contact addresses, PGP key URLs and policy links you type are never uploaded, never stored and never seen by anyone but you. That is a structural guarantee, not a policy promise — there is no network request to intercept.
Day-to-day usage could not be simpler: you fill the three fields — contact email, expiry date, policy URL — and the output panel renders the finished file live, one directive per line. There is no “generate” button to press and no page reload between input and answer; typo fixes re-render as you type. When you are done, close the tab and everything you entered is gone.
From blank form to valid file: the workflow
Here is the complete workflow for the security.txt generator, from blank form to a file you can publish. Every step is optional except the first two.
Start from the defaults
The form arrives with a contact address, an expiry date and a policy URL already filled in — the output pane shows a complete, valid file before you type anything.
Enter your contact email
The inbox researchers should write to. The generator wraps it as a mailto: URI automatically — the exact form RFC 9116 requires, so a bare address never ships by accident.
Set the expiry date
A full date-time with timezone — the preloaded 2027-12-31T00:00:00Z is the shape to copy. The spec caps this field under a year ahead, so pick a date you will actually renew.
Add your policy URL
The link to your disclosure policy page; it becomes the Policy directive. The generator adds the Preferred-Languages: en line and the .well-known placement comment on its own.
Read the generated file
The output re-renders on every keystroke: comment header, Contact, Expires, Preferred-Languages, Policy — one directive per line, ready for /.well-known/security.txt.
Copy and publish
Copy puts the file on your clipboard; publish it at /.well-known/security.txt and verify it from a fresh terminal with curl.
That is the entire workflow. Because every intermediate result is visible and the security.txt generator documents its own method below, you never have to trust a black box — you can check the working at any point.
How each field is assembled and validated
Each form control maps onto one RFC 9116 directive: the contact email becomes Contact: mailto:…, the expiry date becomes the Expires directive, and the policy URL becomes Policy. The generator adds the placement comment and Preferred-Languages: en on its own, and assembles everything as plain ASCII, one directive per line, ready to drop into .well-known. Directives the form does not carry — Encryption, Canonical, extra Contact lines — you add by hand after copying; the spec allows any subset.
The builder makes the classic mistakes structurally hard: it always writes mailto: in front of your address and always emits the date as a full timestamp. Two checks stay yours — keep Expires less than a year ahead, and keep the file plain ASCII — and the failure-modes section below covers both.
A worked security.txt, checked against the spec
Here is the exact file the generator emits for the form's default values — a monitored inbox, an expiry just over twelve months out (yours should sit inside the one-year cap), and a policy link:
# security.txt — placed at /.well-known/security.txt
Contact: mailto:security@example.com
Expires: 2027-12-31T00:00:00Z
Preferred-Languages: en
Policy: https://example.com/security-policyCheck it line by line: Contact is a mailto: URI, Expires carries a full timestamp with a UTC offset, Preferred-Languages uses an ISO 639 code, and every line is a directive in the order the spec suggests. That is the shape the generator emits for any input.
Who publishes a security.txt — and why
Who actually uses a security.txt generator day to day? These two scenarios are drawn from the jobs the tool most often serves.
Security engineers at mid-size companies — when you stand up a disclosure process, the security.txt file is the ten-minute first step. Generate it, drop it into .well-known, point Contact at the triage inbox, and you have a discoverable channel before the formal policy page is even drafted.
Agencies and freelance webmasters — client sites rarely ask for vulnerability disclosure, but the file costs nothing to add at deploy time. Generating a correct one per domain, each with its own Expires date, takes minutes with a form instead of hand-editing the spec text and hoping the syntax survives.
Notice the shape of every scenario: a person, a question, a deadline, and no interest in a platform. That is the user security.txt Generator is built for.
Features, plainly listed
The table summarizes what the security.txt generator promises and how it behaves — the same commitments every tool on this site keeps.
| Aspect | This tool |
|---|---|
| Processing | 100% client-side (JavaScript in your browser) |
| Signup required | No — no account, no email, no cookies for consent-free use |
| Data uploaded | Never — inputs stay on your device by architecture |
| Speed | Instant, live recomputation on every keystroke |
| Mobile support | Full — touch-optimized, responsive layout |
| Offline use | Works after first load (except live-data tools, which say so) |
| Cost | Free, funded by clearly-labelled advertising away from controls |
| Documentation | Full methodology, worked examples and FAQ on this page |
Each row in that table is backed by running code in security.txt Generator, not by a roadmap slide. A single discrepancy report puts it back in sync.
Failure modes and edge cases
Caveats are part of the format, not a footnote to it. Here are the security.txt generator's accuracy guarantees — and its documented boundaries.
- Expires beyond one year — RFC 9116 caps the field at a future date under a year away, and a date already in the past tells researchers the file is abandoned; the tool flags both.
- Wrong publish path — the file must be reachable at /.well-known/security.txt (a root-level fallback is allowed), served over HTTPS where available, or crawlers and humans will never find it.
Every boundary above is stated on this page because the tool does not gate you: the date field accepts exactly what you type, so the one-year cap and the ASCII rule are yours to keep. What you see in the output panel is your input, written exactly the way the spec formats it.
The privacy model, in one paragraph
The input to this tool is itself security-sensitive: disclosure inboxes, PGP key locations, internal policy URLs — exactly the signals an attacker would love to enumerate. So the generator runs entirely locally, and no detail you type ever crosses a network boundary. The file only becomes public when you deliberately upload it to your own server.
This matters beyond principle: the inputs people bring to security.txt generator-style tools include drafts, documents, credentials, financial figures and health numbers — exactly the categories that should never cross an unnecessary network boundary. Local processing is not a feature here; it is the architecture.
When the file does not show up: a checklist
Most security.txt problems are deployment problems, not syntax problems. When the file does not behave, work through this short list in order:
- Start from the defaults: the preloaded contact, expiry and policy already render a known-good file — read it for ten seconds before you type your real details.
- Publish, then verify from outside — curl https://your-domain/.well-known/security.txt from a fresh terminal; a 404 or a redirect chain means the location, not the content, is wrong.
If the file is published but still misbehaves, the causes are almost always one of these:
- A redirect in front of the file — some CDNs route /.well-known/ elsewhere; serve the file directly with a 200 and a text/plain content type.
- Stale Expires dates — set a calendar reminder about two weeks before the date you generated, and regenerate; a lapsed file reads as an abandoned program.
Still hitting a wall? A short message on the contact page gets read by a human who can reproduce, fix and ship security.txt Generator corrections quickly.
Frequently asked questions
These are the questions people actually search about the security.txt generator, answered directly. If yours is missing, the contact page takes feature and question requests.
Do you store what I enter into the security.txt Generator?
No. Processing is client-side JavaScript, so your input stays in the tab's memory and disappears when you close or refresh it. The privacy is architectural — there is no server-side copy to leak, because no server ever receives one.
Is the security.txt Generator free to use?
Yes, completely free. There is no signup, no email gate and no count of how many times you run it. security.txt Generator runs entirely in your browser, so each extra use costs this site nothing and costs you nothing either. It behaves the same on the first visit and the five-hundredth.
Does the generated file follow RFC 9116 exactly?
Yes. Every directive the tool emits — Contact, Expires, Preferred-Languages, Policy — uses the exact syntax RFC 9116 specifies, and the builder always writes the mailto: URI and the full timestamp the spec requires. The date itself stays your responsibility: keep it less than a year ahead.
Where does the security.txt file need to live?
Publish it at /.well-known/security.txt on your domain, served over HTTPS where the site supports it; a root-level /security.txt fallback is also allowed by the spec. The location is half the value — researchers and crawlers look there first.
Can I use the security.txt Generator offline?
Yes, after the first page load. The generator code is local, so building a file never needed a round-trip. Fill the form on a plane, copy the output, publish when you are back online.
How far ahead should I set the Expires field?
RFC 9116 requires a date less than one year in the future; twelve months out is the common choice, with a calendar reminder two weeks before it lapses. A stale Expires date signals an abandoned disclosure process, which is worse than no file at all.
Does the security.txt Generator work on mobile?
Phone, tablet or desktop — the layout reflows and the controls stay touch-friendly. The generation happens locally on the device either way, and the output copies cleanly into any deploy pipeline.
Tools that round out a disclosure setup
A security.txt file sits alongside other policy files in .well-known — these are the companions people most often publish next:
- robots.txt Generator — build crawler rules for the same domain while you are already touching .well-known paths.
- llms.txt Generator — an AI-crawler policy file for the growing list of bots that ignore robots.txt alone.
- AI Crawler Policy Generator — set per-crawler allow and deny rules in one pass, matching your security.txt posture.
Publish it, then set a renewal reminder
Generate the file, publish it at /.well-known/security.txt, verify it with curl from outside your network, and set a reminder about two weeks before Expires. That reminder is the whole maintenance cost of a disclosure channel.
Sources and further reading
- RFC 9116 — A File Format to Aid in Security Vulnerability Disclosure(rfc-editor.org)
- securitytxt.org — the canonical examples and FAQ(securitytxt.org)
- OWASP Cheat Sheet Series — Vulnerability Disclosure(cheatsheetseries.owasp.org)
- Google Bug Hunters — disclosure program guidance(bughunters.google.com)
- IANA registry of well-known URIs(iana.org)
We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.