Free tool
Password & API Key Generator
Generate strong random passwords and API keys with your browser's cryptographic random number generator. Nothing is sent or stored.
Runs entirely in your browser. Nothing you type or upload is sent to our servers.
Password basics that actually matter
- Use a unique password for every account, because reuse is how one breach becomes many.
- Prefer length over complexity: 16+ random characters.
- Store them in a password manager and turn on two-factor authentication.
- Never share passwords or API keys by email or chat.
About API keys and tokens
Keep keys out of source code and public repositories, load them from environment variables or a secrets manager, and rotate them if they might have leaked.
Frequently asked questions
Is it safe to generate passwords in a website?
This generator runs entirely in your browser and uses the Web Crypto API (crypto.getRandomValues), the same source of randomness browsers use for security features. The password is never sent to our servers or stored, and our analytics only record that the tool was used, never its output.
How long should a password be?
For accounts that matter, 16 or more random characters is a sound default. A longer password is stronger than a more complicated short one. Use a password manager so you never need to memorise them.
What is the entropy shown?
Entropy estimates how hard the password is to guess if an attacker knows how it was generated: length × log2(number of possible characters). Higher is stronger. The figure applies to randomly generated passwords, not human-chosen ones.
Can I use the API key generator for production secrets?
It produces random URL-safe tokens suitable as secrets or keys for your own systems. Services that issue their own keys (such as cloud and AI providers) should be used through their dashboards instead. Store secrets in a secrets manager, never in code or chat.
Link to this tool
Found it useful? Copy a link for your page, newsletter or documentation.
Get new tools and guides by email
Optional. The tool above works without signing up.
More free tools
Browse all developer tools or the full list of free tools.
- JSON Formatter, Validator & MinifierValidate, pretty-print, sort and minify JSON with clear error messages that show the exact line and column. Runs in your browser, so your data stays private.
- Markdown to HTML ConverterConvert Markdown to clean, sanitised HTML with a live preview. Scripts and unsafe links are removed, and nothing leaves your browser.
- HTML Viewer & FormatterPaste HTML to see a safe, sandboxed live preview where scripts never run, then beautify or minify the source. Private: nothing leaves your browser.
- Text Compare & Diff CheckerCompare two texts side by side or inline and see every added, removed and changed line or word. Options to ignore case and whitespace. Nothing is uploaded.
- SEO Meta Tag & Social Preview GeneratorWrite title and description tags with live Google and social-card previews, length guidance, and copy-ready Open Graph and Twitter Card HTML.
- UTM Campaign Link BuilderBuild clean, consistent UTM-tagged campaign links for Google Analytics. Normalises case, keeps existing parameters and warns about common mistakes.