Token generator.

Create a secure token for your application in a moment. Random, API key, signed JWT or UUID, made in your browser. Nothing is stored or sent.

Format
Length (characters)
 

190 bits of security

Made in your browser with crypto.getRandomValues, the browser's own secure source. Every character comes up equally often.

Questions.

  • What is a token?

    A random string that works as a key. Your application gives it to whoever may come in and asks for it with every request, instead of a password. That is why it has to be impossible to guess.

  • Is it safe to generate it here?

    Yes. The token is made in your browser with crypto.getRandomValues, the source browsers use for their own encryption, not Math.random. It goes through no server, is not stored and nobody else sees it.

  • What length do I need?

    For a key or a secret, 128 bits at least and 256 is better. With letters and digits, 32 characters give about 190 bits, and with base64url 43 characters already go past 256. The number of bits is shown next to the token.

  • Hex, base64url or letters and digits?

    All three work in a web address or a header. Hex uses only 16 different characters and is the easiest to read out loud, base64url packs more security into fewer characters, and letters and digits suit places that do not take dashes.

  • What is an API key's prefix for?

    To tell at a glance what it is and where it comes from, like sk_live_ for a live secret key. It helps your team not to mix them up and lets leaked key scanners recognise them.

  • How do I use the JWT I make here?

    We sign it with HS256 and the secret you choose. Your server checks it with that same secret, so keep it safe. The data is only encoded, not encrypted, and anyone can read it.

  • Why does every letter come up equally often?

    Because every random byte that does not fit exactly into the number of characters is thrown away and another one is drawn. Done with the remainder of a division, as many generators do, the first letters come up more than the rest.

Let's talk.

Tell us what you need and one of the partners who write the code gets back to you.