Free tool

security.txt generator

Enter your contact, an expiry date, your languages and, if you have one, your disclosure policy: the security.txt file is built and validated in your browser, compliant with RFC 9116, with a button to copy it.

Email address, phone number with country code (+44…) or an https web address. An email address is written as mailto: for you.

Required. Suggested to be under one year away: the standard recommends renewing the file at least once a year.

Optional. Language codes separated by commas, for example en, fr.

Optional. The https address of the page that explains how to report a flaw to you.

Optional. The https address where the file will be published.

Everything happens in your browser: nothing is sent or stored.

Your security.txt file

The file appears here as soon as you fill in the form.

Publish it at the /.well-known/security.txt address of your domain, over HTTPS.

What this generator does

A security.txt file is a small text file, published on your website, that tells people who to contact about a security problem. Without it, someone who finds a flaw on your site has to guess who to write to, and often gives up. This generator builds the file line by line as you fill in the form: one Contact line for each way to reach you, the mandatory Expires line, preferred languages, the address of your disclosure policy and, if you want, the official address of the file itself. An email address is turned into a mailto: address and a phone number into a tel: address, as the standard requires. Everything happens in your browser: nothing you type is sent to our server or stored.

How to read the validation

Below the file, the validator reads the text back exactly as a checking tool would. An error means the file does not comply with RFC 9116: the copy button then stays disabled. A warning points to something the standard advises against without forbidding it, for example an expiry date that is too far away: the standard recommends staying under one year, so that contact details stay current. When the list is empty, the file is compliant: copy it and publish it as it is. The validation covers the form of the file. It cannot check that the contact address really receives messages, so send yourself a test.

The most common mistakes

  • Leaving out the Expires line, or repeating it: it is mandatory and must appear only once.
  • Letting the file go stale: once the date has passed, tools treat it as out of date, so it can't be relied on.
  • Writing an email address without mailto:, or a policy address in http instead of https: web addresses must use https.
  • Publishing the file in the wrong place: it must sit in the .well-known folder of your domain, served over HTTPS.

Where to publish the file, step by step

Copy the generated file and save it as security.txt, in plain text encoded as UTF-8. Publish it at the /.well-known/security.txt address of your domain, which means in a folder named .well-known at the root of your website, served over HTTPS with the text/plain type. The old location, at the root of the website, is tolerated: if you use it too, make it point to the same content. Then open the address in your browser to check that it answers, note the expiry date in your calendar and renew the file before that date. You can also sign the file with OpenPGP: the standard recommends it, but it is not mandatory.

Frequently asked questions

Does my website need a security.txt file?

No law requires it in this context, but it is a recognized good practice: it saves well-meaning people from hunting for someone to tell about a problem, and it shows that you take reports seriously.

Why is the expiry date mandatory?

Because a forgotten contact is worse than none: the date forces you to check regularly that the address you list is still being read. Once the date has passed, the file should no longer be used.

Is what I type sent anywhere?

No. The file is built and validated by the page's own code, in your browser. No request is made with your data, and nothing is stored.

Where should the security.txt file go?

At /.well-known/security.txt on your website, served over HTTPS: that is the location set by RFC 9116. A redirect from /security.txt is allowed for older tools.

Do I need to sign the file?

No, the OpenPGP signature is optional. It proves the file really comes from you, but it means managing a key. Without a signature, HTTPS, which is required anyway, already protects the file in transit.