.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
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
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
- Emit an optional `# Rules for <project>` heading when a project name is supplied.
- Append the visitor's rules verbatim, preserving their line breaks.
- Never synthesize a rule, command, path or convention the visitor did not provide.
Usage
- Enter your project name (optional) and the rules you want the AI editor to follow.
- One rule per line is usually most readable.
- 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
{
"projectName": "demo",
"rules": "Use TypeScript for new files.\nNever commit secrets."
}No project heading
{
"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
- Cursor — Rules — Cursor
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.