API Key & Token Generator

Generate a random string in four encodings.

Loading this tool…

0 input bytes sent· Privacy Proof

Your inputs stay in this tab. This page runs no third-party scripts.

Browser-recorded requests
0
External requests
0
Site lookups
0
Input-derived data sent
0 characters from your inputs

Try airplane mode after the page has loaded. Build 1.0.0 · 52c110927235

How it works

Pick an entropy size and output format. Hex, Base64, and Base64url encode the same random bytes differently. Alphanumeric mode draws from letters and digits and rounds up to meet the chosen bit count.

Browse related security tools
Does this create a key for another service?

Create service-issued keys in that service’s dashboard. These tokens are for systems that accept random secrets you supply.

What format works in URLs?

Use Base64url or hex. Keep secret values out of URLs whenever the application offers a header instead.

Where should I store a server token?

Put it in the application’s secret store or deployment environment. Avoid commits and logs.

Related tools