Generate random tokens, API-style keys, mock secret strings, hex tokens, base64-style tokens, session tokens, and test tokens. Everything runs in your browser.
Length:
Choose the number of random characters in the token body.
Token type:
Pick alphanumeric, hex, base64-style, URL-safe, or numeric output.
Prefix:
Add a label like api, sk, test, session, or token before each generated token.
Display style:
Group longer tokens every 4 or 8 characters to make them easier to read.
A token generator helps create random strings for mock API keys, test credentials, reference tokens, session-style strings, and demo apps.
It is useful for app testing, website demos, mock auth flows, spreadsheet IDs, internal tools, API examples, and generator pages.
No. This generator runs in your browser using JavaScript. The generated tokens are not submitted anywhere by this page.
This page is best for mock tokens, testing, demos, and random strings. Production API keys should be generated, stored, hashed when appropriate, rotated, and validated server-side.
The page avoids duplicates within the current generated batch, but it does not check against tokens created earlier or stored elsewhere.
Yes. After generating tokens, click the copy button to copy the result.