security.txt Generator and Validator (RFC 9116)

Tell security researchers how to reach you: build a correct /.well-known/security.txt, check one for errors and set a reminder before it expires.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Add contacts

    Enter e-mail addresses, phone numbers or https report forms.

  2. 2
    Set the expiry

    Pick a day count or type an RFC 3339 date-time.

  3. 3
    Add optional links

    Fill in policy, encryption key, acknowledgments, canonical and others.

  4. 4
    Read the checks

    Fix any error the checker lists under the output.

  5. 5
    Publish

    Download security.txt and use the server snippet to serve it.

  6. 6
    Check existing files

    Paste a current file in the second tab and load it into the builder.

About this tool

When someone finds a vulnerability in a website, the hardest part is often finding the right person to tell. Reports end up in a general support inbox or a social media message and are lost. RFC 9116 defines a small text file, security.txt, served at /.well-known/security.txt, that answers this question in a standard, machine-readable way. It lists one or more contacts, an expiry date so stale files are not trusted, and optional links to a disclosure policy, an encryption key, an acknowledgments page, security jobs and CSAF advisories. Governments, bug bounty platforms and scanners now look for the file, and some public-sector guidelines ask for it. The format is simple, but small mistakes are common: a missing Expires field, a plain e-mail address instead of a mailto: URI, an http link, or a file that quietly expired last year. This tool writes the file correctly and checks existing ones.

Building the file

Add contacts in order of preference. Plain e-mail addresses are turned into mailto: URIs and phone numbers into tel: URIs automatically; web forms must use https. Choose an expiry with the 90, 180, 335 or 365 day buttons or type an RFC 3339 date-time; the RFC recommends less than a year so the file is reviewed regularly. Optional fields are Encryption for a PGP key URL, Policy for your disclosure policy, Acknowledgments for a hall of fame, Canonical for the address the file is meant to be served from, Preferred-Languages, Hiring and CSAF. Comment lines at the top can carry a short note such as your response time.

Checks

The builder checks its own output, and the second tab checks any file you paste or open. It reports missing Contact or Expires, Expires or Preferred-Languages given twice, dates that are not RFC 3339 or already in the past, expiry more than a year ahead, values that are not URIs, http links, lines that are not Field: value pairs and unknown fields. It detects an OpenPGP cleartext signature and reads the signed part, though it does not verify the signature itself. A found file can be loaded into the builder for editing.

Publishing

Serve the file as text/plain with UTF-8 at https://your-domain/.well-known/security.txt, and optionally redirect /security.txt there. Snippets are included for Nginx, Apache, Express and Netlify or Cloudflare _headers. A calendar button downloads an .ics reminder 30 days before the expiry date so the file is renewed in time.

Limits

This tool does not fetch security.txt from other sites, because browsers block such cross-origin reads; open the file in a tab and paste it. It does not sign the file; use gpg --clearsign on your own machine and keep the private key there. A security.txt is a contact channel, not a bug bounty or a legal safe harbour, which belong in your policy page.

Worked example

A small software company lists [email protected] and a report form at https://example.com/security/report, picks the 335 day button on 2 November 2026 and gets an Expires date-time on 3 October 2027. The file has 8 lines including one comment, and the checks show no errors, with one warning that it is not signed. Pasting the old file from their server reveals three errors: Contact [email protected] is not a URI, Expires 2025-01-01 is not an RFC 3339 date-time, and the policy link uses http. The new file and the Nginx snippet replace it, and the calendar reminder is set for 3 September 2027.

Quick facts

Frequently asked questions

Where must security.txt live?

At /.well-known/security.txt on each domain, served over HTTPS as text/plain. A copy or redirect at /security.txt is allowed for older tools.

Which fields are required?

Contact, at least once, and Expires, exactly once. Everything else is optional but helpful, especially Policy and Encryption.

How far ahead should Expires be?

Less than one year, as the RFC recommends. Many teams choose six months and renew when the reminder comes.

Do I need to sign the file?

It is optional. Signing with OpenPGP lets readers confirm the file was not altered; if you sign, include a Canonical field.

Can I list a web form instead of an e-mail?

Yes. Any https URL works as a Contact, and you can list several contacts in order of preference.

Is my information stored?

Only as a draft in your browser's local storage on this device, so a reload does not lose it.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages