Security Guide

How to Generate a Strong Password, Passphrase, PIN or API Token Online (Free)

A password is only as good as the randomness behind it, and human-made passwords are rarely random. The ToolTiny Password Generator makes four kinds of secrets in one page, a password, a passphrase, a PIN and an API token, shows how strong each one is in bits, and can also test a password you already use. This guide follows a real screen recording, so every number below is one we saw on screen. The passwords in the screenshots are random samples made for the video: generate your own.

Password, Passphrase, PIN or Token?

TabSetting in our testStrength shownBest for
Password21 characters, all four types135 bits, STRONGWebsite and app accounts, kept in a password manager
Passphrase5 words, hyphen, capitals, a number70 bits, GOODPasswords you type by hand: password manager, device login
PIN6 digits20 bits, WEAKPhone lock or bank card only, where tries are limited
Token / API key256-bit hex256 bits, STRONGAPI keys, secrets, webhook signing

“Bits of entropy” is the number the tool uses to measure strength. Each extra bit doubles the number of guesses an attacker needs, which is why 135 bits is not just a little better than 70, it is astronomically better.

Watch the Whole Process

The recording opens the tool from the menu, builds a password by switching the character types on one by one, makes passphrases with different separators, tries a PIN and a token, and finishes by checking a short test word on the Check my password tab.

How to Generate and Check a Password, Step by Step

  1. Open the Password Generator

    Open the Developer menu in the top bar and choose Password Generator, or go straight to tooltiny.com/password-generator.html.

    Developer menu with Password Generator highlighted
    Developer → Password Generator
  2. Five tools on one page

    The generator has five tabs: Password, Passphrase, PIN, Token / API key and Check my password. The page says it is free, runs in your browser and needs no sign-up. Pick a tab and a new result is ready at once. (In our recording the page happened to open on the Token tab.)

    Password Generator page with five tabs and a token already generated
    Five tabs, one page
  3. Set the length and the character types

    On the Password tab, drag the Length slider or type a number. We used 21. Below it, four boxes choose the characters: Uppercase, Lowercase, Numbers and Symbols. With uppercase only, the strength line read 99 bits of entropy.

    Password tab with length 21 and only Uppercase ticked, showing 99 bits of entropy
    Length 21, uppercase only: 99 bits
  4. Watch the strength grow

    Every extra character type adds entropy. At the same length of 21 we saw 99 bits (uppercase), 120 bits (plus lowercase), 125 bits (plus numbers) and 135 bits (plus symbols). The meter turns STRONG and the line under it says the brute-force time is longer than the age of the universe.

    Password with all four character types and 135 bits of entropy, rated STRONG
    All four types: 135 bits, STRONG
  5. Avoid look-alike characters

    Tick Avoid look-alike characters when you will read or type the password by hand. It leaves out I l 1 | O 0 o, and the entropy dropped a little, to 133 bits, because there are fewer characters to choose from. The Symbols to use box lets you decide which symbols are allowed, useful for sites that reject some of them.

    Avoid look-alike characters ticked, password with 133 bits of entropy
    Look-alike characters removed: 133 bits
  6. Make a passphrase

    Open Passphrase for something you can remember. By default it picks 5 words with a hyphen between them, capitalised, plus a number. Our result had 70 bits, rated GOOD, and the tool estimated about 23 centuries at 10 billion guesses per second. The note says the words come from the EFF list of 7,776 words, about 12.9 bits per word.

    Passphrase tab with five words, 70 bits of entropy, rated GOOD
    Five words: 70 bits, GOOD
  7. Choose the separator

    The Separator list offers Hyphen, Space, Dot, Underscore and None. Pick one and the passphrase changes at once. Capitalize words and Add a number are two tick boxes beside it. Use a space for a phrase you type often, or None when a site does not allow punctuation.

    Separator list open with Hyphen, Space, Dot, Underscore and None
    Hyphen, Space, Dot, Underscore or None
  8. Generate a PIN

    The PIN tab makes a number of 4 to 12 digits. A 6-digit PIN had only 20 bits and is marked WEAK, and the tool says why: a guesser with unlimited tries needs instantly, but with a limit of 10 attempts has only a 0.0010% chance. We then moved the slider to 7 and 8 digits: 23 bits and 27 bits. A note on the page says a PIN is only safe where the number of attempts is limited and should never be a website password.

    PIN tab with a 6-digit PIN rated WEAK at 20 bits and a note about limited attempts
    6-digit PIN: 20 bits, only safe with limited tries
  9. Create a token or API key

    On Token / API key the default is a hex token of 256 bits (32 bytes), rated STRONG. The note says tokens use only characters that are safe in URLs, JSON, .env files and HTTP headers.

    Token / API key tab with a 256-bit hex token rated STRONG
    256-bit hex token
  10. Pick the format and size

    Format offers Hex (0-9 a-f), Base64URL and UUID v4. Size offers 128, 192, 256 or 512 bits (16, 24, 32 or 64 bytes). Choose Base64URL for a shorter string, or UUID v4 when a system asks for a UUID.

    Format list open with Hex, Base64URL and UUID v4
    Hex, Base64URL or UUID v4
  11. Open Check my password

    The last tab tests a password you already use. Its box says Your password stays on this device. The strength meter stays empty until you type, and the page explains that the analysis runs entirely in your browser.

    Check my password tab with an empty box
    Check my password
  12. Read the analysis

    We typed a test word one letter at a time. TEST was VERY WEAK (6 bits), and TEST123% was WEAK, about 10^5 guesses or 15 bits. The table shows the length and character types, the time for a rate-limited online attack (15 days), an unlimited online attack (1 hour) and an offline attack with a fast hash (less than a second), plus the weak spots found (“a common word or name”) and tips such as adding another word.

    Check my password results for a short test word with a WEAK rating and crack-time table
    TEST123%: WEAK, 15 bits
  13. Check for a data breach (optional)

    The button Check if it has appeared in a data breach uses the free Have I Been Pwned service. The page says that only the first 5 characters of the password's SHA-1 hash are sent, never the password, and that nothing is sent until you press the button. Press it only if you want that extra check.

    Button Check if it has appeared in a data breach under the analysis table
    Data breach check: only on click

Good to Know

Follow ToolTiny for short tutorials

One-minute clips on converting, repairing and editing documents, images and text.

Tips

Generate a strong password now

Password, passphrase, PIN and API token in one page. Free, private, no sign-up.

Open Password Generator

Related ToolTiny Tools

Frequently Asked Questions

How do I generate a strong password?
Open the Password tab, set the length (we used 21) and tick Uppercase, Lowercase, Numbers and Symbols. The result appears at once. With all four types at 21 characters the tool showed 135 bits of entropy and rated it STRONG.
How long should a password be?
Longer is the main lever. In the tool, a 21-character password with all four character types reached 135 bits, and the page estimates that guessing it would take longer than the age of the universe at 10 billion guesses per second. Use the Length slider to see how the number changes.
What is a passphrase and when should I use it?
A passphrase is several random words joined together. Five words from the EFF list of 7,776 words gave 70 bits (GOOD) in our test. It is easier to remember and type than a random string, so it suits passwords you must enter by hand, such as a password manager or a device login.
What does the Separator option do?
It sets what goes between the words: hyphen, space, dot, underscore or nothing. You can also switch Capitalize words and Add a number on or off.
What does Avoid look-alike characters do?
It removes characters that are easy to confuse when read, I l 1 | O 0 o. This helps when you copy a password by eye or read it aloud. In our test it lowered the entropy slightly, from 135 to 133 bits, because there are fewer characters to pick from.
Is a PIN safe?
Only where the number of attempts is limited, such as a phone lock screen or a bank card. A 6-digit PIN has about 20 bits and is marked WEAK, because a program with unlimited tries guesses it instantly. The page says never to use a PIN as a website password.
What is the Token / API key tab for?
It creates random secrets for software: API keys, session secrets, webhook signing keys. You can choose Hex, Base64URL or UUID v4 and a size of 128, 192, 256 or 512 bits. The characters used are safe in URLs, JSON, .env files and HTTP headers.
How does the Check my password tab work?
Type or paste a password and the page shows a strength rating, the estimated time to crack it in three attack situations, the weak spots it found and tips. The page says the analysis runs in your browser and the password stays on your device.
Does the page send my password anywhere?
Not unless you press the breach-check button. That optional button uses Have I Been Pwned and, according to the page, sends only the first 5 characters of the password's SHA-1 hash, never the password itself.
Should I test my real password?
It is safer to test a password written in the same style, with the same length and kind of characters, than the one you actually use. If a password has ever been typed into a website you do not control, treat it as used and replace it.
Is the Password Generator free?
Yes. It is free, needs no account and the page says everything is generated in your browser.