.cursorrules Generator

Compose a .cursorrules file from your own project rules — nothing is invented and blank input is refused.

  • Runs locally in your browser
  • No upload required

Try it

.cursorrules
Use TypeScript for new files. Never commit secrets.
Use TypeScript for new files.
Never commit secrets.

Supported formats

Input
text/plain
Output
text/plain

Privacy

Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.

Processing
In your browser
Privacy level
Browser only

Generated a .cursorrules file (4 line(s)).

How it works

  • Read the project name and the rules the visitor typed.
  • Emit the rules verbatim, with an optional project heading.
  • Invent nothing: the output is exactly the supplied text.
  • `.cursorrules` is the legacy single-file Cursor format; newer Cursor uses `.cursor/rules`.

Methodology

  1. Emit an optional `# Rules for <project>` heading when a project name is supplied.
  2. Append the visitor's rules verbatim, preserving their line breaks.
  3. Never synthesize a rule, command, path or convention the visitor did not provide.

Usage

  1. Enter your project name (optional) and the rules you want the AI editor to follow.
  2. One rule per line is usually most readable.
  3. Save the generated file as `.cursorrules` at your project root.

Examples

These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.

Two simple rules

jsonSelect to copy
{
  "projectName": "demo",
  "rules": "Use TypeScript for new files.\nNever commit secrets."
}

No project heading

jsonSelect to copy
{
  "projectName": "",
  "rules": "Prefer functional components."
}

Limitations

Writing useful rules

Good rules are focused and actionable: state the convention, why it matters, and a concrete example. Point at canonical files instead of copying whole style guides, and keep the file short enough to stay relevant.

Frequently asked questions

Should I use .cursorrules or .cursor/rules?
`.cursorrules` is the legacy single-file format this generator produces. Cursor's current documentation describes project rules under `.cursor/rules`; use this generator when you specifically need the classic file.
Is my content uploaded?
No. The generator runs entirely in your browser; nothing is sent to a server.

Sources

  1. Cursor — Rules — Cursor