Fake Token Generator
Handy for unit tests and local tooling: produces strings that match Discord's token shape (base64 payload + ID + sign counter) but are completely fake - they will never work on Discord. Educational use only.
- Free, no limits
- No login
- Runs in your browser
These tokens are fake, invalid and will never work on Discord. Use them for testing parsers and decoders only.
About this tool
This tool produces random strings shaped like Discord tokens. Every token is completely invalid and will never authenticate with Discord. They exist purely for testing parsers, decoders and documentation examples.
The generator uses the browser's crypto API for randomness and builds the token in Discord's three-part dot-separated format, so your test scripts see exactly the same shape they would encounter from a real token.
How to use
Choose how many tokens you need (1–10).
Click Generate.
Copy the fake tokens into your own test scripts.
These are not real tokens
Tokens produced here are structurally shaped like Discord bot tokens - three base64 segments joined by full stops - but the signature segment is random rather than derived from Discord's key. They authenticate nothing and will be rejected immediately by the API.
The use case is testing: validating a regex, checking that a redaction filter catches token-shaped strings, or populating a fixture without pasting a real credential into a test file. Anything where the shape matters and the validity does not.
If a site offers to generate working Discord tokens, it is either lying or phishing. Only Discord can issue a valid token, and the only way to obtain one is the Developer Portal for your own application.
Why fixtures should never use real credentials
Test data ends up in places production credentials should not: committed to repositories, pasted into issues, included in bug reports and shipped in example configs. A structurally valid but functionally dead token removes the risk entirely.
It also makes leak detection testable. You can commit a fake token deliberately to confirm your secret scanner fires, which is not something you want to try with a real one.
Why you need fake tokens for testing
If you are building a token checker, decoder or any tool that parses tokens, you need sample data that matches the real format without exposing actual credentials. Fake tokens are the safe way to test edge cases and validate your parsing logic.
What a fake token looks like
A fake token follows the same three-part structure as a real one, so your regex and split logic behave identically. The middle section even decodes to a JSON payload with a plausible user ID, which is handy for testing a decoder end to end.
Frequently asked questions
Will these tokens work on Discord?
No. They are fake and contain no real credentials. Attempting to use them will simply fail authentication.
Related guides
Browse all guides and generators.
Try other relevant tools
Snowflake ID & Date Converter
Convert between Discord IDs and exact dates - both directions.
Discord Timestamp Generator
Create <t:123:r> timestamps that render in every reader’s local time.
Discord Token Decoder
Decode the payload of a Discord token to reveal the embedded user ID and type.