← Developer

Password Generator

Generate strong, random passwords in your browser. Nothing leaves your device.

Settings

Mode
Length
Character types
Count

Generated passwords

Use this tool from AI agents

This tool's engine is available to AI agents over MCP as generate_password. Add the Clean.tools server, then your agent can call it directly.

Claude Code
claude mcp add --transport http clean-tools https://mcp.clean.tools/mcp
Claude Desktop (mcpServers)
{"mcpServers":{"clean-tools":{"command":"npx","args":["-y","@clean-tools/mcp"]}}}
Cursor
https://mcp.clean.tools/mcp

Or call it over plain HTTP from any script. Same engine, JSON in and JSON out, no key:

curl
curl -s https://api.clean.tools/v1/generate_password \ -H 'content-type: application/json' \ -d '{"mode":"random","length":20,"uppercase":true,"lowercase":true,"numbers":true,"symbols":true,"count":1}'
JavaScript
const res = await fetch('https://api.clean.tools/v1/generate_password', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ mode: 'random', length: 20, uppercase: true, lowercase: true, numbers: true, symbols: true, count: 1 }) }); const data = await res.json();

How it works

This password generator uses the Web Crypto API (crypto.getRandomValues) to produce cryptographically strong random values. The randomness comes from your operating system's secure random number generator, not from JavaScript's Math.random. Passwords are generated entirely in your browser and are never sent to a server.

Choose a length between 8 and 128 characters and toggle the character types you need. The generator runs instantly on any modern browser, on both mobile and desktop. No cost, no signup, no tracking. If you would rather generate passwords from a script or an AI agent, the same engine is available as the generate_password tool through the Clean.tools password-generator API, or by installing the @clean-tools/mcp package from npm.


Frequently asked questions

What is the difference between the random and memorable modes?

Random mode draws each character independently from the character sets you enable, producing a high-entropy string like k7#Rp2$vLq. Memorable mode joins several short words (with random capitalization and an optional number and symbol) into a passphrase like Table-fox-9-Ocean that is easier to type and remember while still being long.

What are the length and count limits?

Random passwords can be 8 to 128 characters, memorable passphrases use 3 to 8 words, and you can generate up to 10 at once. In memorable mode, enabling the number and symbol extras inserts them at random positions, so the final passphrase may be slightly longer than the word count alone.

Are the generated passwords saved or sent anywhere?

No. Every password is created in your browser with the Web Crypto API and is never transmitted or stored on a server. Nothing persists after you close or reload the page, so copy any password you want to keep before leaving.

Why does clicking a password copy it, and does copying leave my device?

Clicking or tapping a generated password copies it to your clipboard for convenience, the same as the Copy button. The clipboard is managed by your operating system, so treat it like any copied secret and clear it or paste it into your password manager promptly.

Can I use this from the command line or an AI agent?

Yes. The same generator is exposed as a REST endpoint at https://api.clean.tools/v1/generate_password, so you can POST a JSON body from curl or any script and get passwords back as JSON. It is also an MCP server you can add to Claude, Claude Code, or Cursor to let an agent generate passwords on demand. The @clean-tools/mcp npm package runs that same server locally over stdio if you prefer to keep it on your own machine.

More tools from Clean.tools

View all tools

Use Clean.tools from your AI agent

This tool is also generate_password on the Clean.tools MCP server — the same engine, callable by your AI agent directly. No key, no signup: requests are processed in memory and request contents are never stored.

Claude Code
claude mcp add --scope user --transport http clean-tools https://mcp.clean.tools/mcp
Any MCP client (streamable HTTP, authless)
https://mcp.clean.tools/mcp

Every tool, the REST API, and setup for Cursor, Claude Desktop, VS Code & more →