WebTools

307 Useful Tools & Utilities to make life easier.

Security.txt Generator

Create a security.txt file to help researchers report vulnerabilities.

How researchers should reach you.
When this policy expires (Max 1 year recommended).
Link to your public PGP key.
Link to your vulnerability disclosure policy.
Link to your security researchers hall of fame.
Link to security-related job openings.
The permanent URL for this file.
Comma-separated list of language codes.
Generated security.txt Content

Place this file at /.well-known/security.txt or the root directory.

Introduction to the Security.txt Generator

The Security.txt Generator is a specialized, web-based utility designed to help website administrators, security researchers, and developers quickly create standard-compliant security.txt files. Defined by RFC 9116, the security.txt standard provides a clear, universally recognized method for organizations to define their vulnerability disclosure policies. By hosting this file on your domain, you give independent security researchers a straightforward way to responsibly report vulnerabilities before they can be exploited.

From a technical standpoint, this tool is built entirely as a client-side application utilizing Alpine.js for real-time reactivity. Because the generation logic is handled natively within your browser, no data is ever transmitted to a server. This architectural choice ensures complete privacy and guarantees instantaneous feedback as you fill out the required and optional fields. The tool automatically formats the output according to the IETF specification, converting dates to ISO 8601 format and ensuring the correct directives are used.

Key Features and Supported Directives

The generator supports all major directives defined by the security.txt specification:

  • Contact (Required): Specifies how researchers should reach you (e.g., a mailto: email address or a URL to a web form).
  • Expires (Required): Defines when the policy is no longer valid. The tool defaults to one year from the current date.
  • Encryption: Points to a public PGP key so researchers can encrypt sensitive vulnerability reports.
  • Policy: Links to your organization's detailed vulnerability disclosure policy or bug bounty program.
  • Acknowledgments: Links to a page where you recognize researchers who have safely reported issues (often called a Hall of Fame).
  • Hiring: A link to security-related job openings within your organization.
  • Canonical: The authoritative URI for the security.txt file itself.
  • Preferred-Languages: A comma-separated list of language codes indicating which languages your security team prefers.

Practical Worked Example

To understand how the Security.txt Generator formats your data, consider the following practical example for a fictional company, ExampleCorp.

Input Parameters

  • Contact URL or Email: mailto:[email protected]
  • Expiration Date: 2026-12-31
  • Encryption (PGP Key URL): https://examplecorp.com/pgp-key.txt
  • Security Policy URL: https://examplecorp.com/security-policy
  • Preferred Languages: en, es

Generated Output

Once you fill in these fields and click the Generate Security.txt button (or watch the real-time updates), the tool produces the following exact text block:

Contact: mailto:[email protected]
Expires: 2026-12-31T00:00:00.000Z
Encryption: https://examplecorp.com/pgp-key.txt
Policy: https://examplecorp.com/security-policy
Preferred-Languages: en, es

You can then click the Copy to Clipboard button to instantly grab the code, ready to be pasted into your text editor and uploaded to your server.

Frequently Asked Questions (FAQ)

What is a security.txt file?
A security.txt file is a standard text file that defines your organization's vulnerability disclosure process. It acts as an equivalent to robots.txt, but specifically intended for white-hat hackers and security researchers. It tells them exactly who to contact, what languages to use, and where to find your PGP key.
Where exactly should I place the generated file on my server?
According to the RFC 9116 standard, the file must be placed in the /.well-known/ directory of your website. The absolute path should resolve to https://yourdomain.com/.well-known/security.txt. For legacy compatibility, placing it in the root directory (/security.txt) is also acceptable, but the .well-known directory is the primary standard.
Why is the Expiration Date field required?
The Expires directive is mandatory under the RFC specification to ensure that policies do not become dangerously stale. If a company changes its security contacts or goes out of business, an outdated file could misdirect critical vulnerability reports. It is highly recommended to set an expiration date no longer than one year in the future, and to set up a reminder to update the file before it expires.
Does this tool store my organization's contact information?
No. The Security.txt Generator is powered entirely by client-side JavaScript (Alpine.js). All data input and file formatting happens directly within your web browser. No information is logged, stored, or transmitted to any external servers.
Can I have multiple Contact or Acknowledgments directives?
The RFC allows for multiple instances of certain directives (like Contact). While this generator focuses on streamlining the process with single input fields per directive, you can easily use the generated output as a baseline. Once generated and copied, you can manually duplicate the Contact: line in your text editor to include additional emails or URLs before uploading the file.

Contact

Missing something?

Feel free to request missing tools or give some feedback using our contact form.

Contact Us