HOW-TO

How to generate an API token

Generate a high-entropy API token, webhook secret, or session key. Free online generator plus secure-storage best practices.

A good API token is long, random, and secret. Here is how to generate one that cannot be guessed and how to handle it safely afterwards.

Generate high entropy

Use a cryptographically random generator — never a timestamp, a counter, or a "clever" pattern. Our token generator produces high-entropy strings suitable for API keys, webhook signing secrets, and opaque session tokens.

Store and rotate it safely

Keep tokens in a secret manager or environment variables, never in source control or client-side code. Scope each token to the minimum access it needs, rotate them periodically, and revoke immediately if one leaks.

Step by step

1

Open the token generator and choose a length of at least 32 characters.

2

Generate and copy the token.

3

Store it in a secret manager or environment variable — never in git.

4

Send it as an Authorization: Bearer header, scope it narrowly, and rotate on a schedule.

Try it now — free, no signup

Use the token generator in your browser. Then, when you need it at scale with an API key and higher limits, grab the full Eveses API.

FAQ

How long should an API token be?›
At least 32 random characters so it cannot be brute-forced. Longer is fine.
Where do I store an API token?›
In environment variables or a secret manager, never committed to a repository or exposed in front-end code.

Related