64-bit Secret Generator

Generate secure 64-bit secrets online using cryptographically secure random values. Choose hex, Base64, Base64URL, or unsigned 64-bit decimal output — ideal for API secrets, session tokens, and test credentials.

  • Free
  • No signup
  • Private

Privacy & security: Your generated secrets and hashes are processed locally in your browser whenever possible and are not stored on our servers.

Generates 64-bit (8 bytes) cryptographically secure random data.

Your generated secrets and hashes are processed locally in your browser whenever possible and are not stored on our servers.

Overview

Generate secure 64-bit secrets online using cryptographically secure random values. Choose hex, Base64, Base64URL, or unsigned 64-bit decimal output — ideal for API secrets, session tokens, and test credentials.

Benefits

  • Cryptographically secure random bytes via Web Crypto
  • Multiple output formats in one click
  • Runs instantly in your browser
  • No signup and no data stored on servers

Use Cases

  • API secrets and webhook signing keys
  • Session tokens and CSRF nonces
  • Encryption salts for development
  • Authentication and test environments

Users Also Use

How to Use

  1. Select an output format: hex, Base64, Base64URL, or decimal (64-bit only).
  2. Click Generate Secret to create 8 random bytes.
  3. Copy the value and store it in your secrets manager or .env file.

What is a 64-bit secret?

A 64-bit secret is 8 bytes of cryptographically secure random data. There are 2^64, about 18.4 quintillion, possible values. This tool creates the bytes with crypto.getRandomValues() in your browser and shows them in the format you pick. The value is not sent to or stored on our server.

Output formats

  • Hex: 16 characters using 0–9 and a–f
  • Base64: 12 characters, ending with one = of padding
  • Base64URL: 11 characters using - and _ instead of + and /, with no padding, safe for URLs
  • Decimal: an unsigned whole number from 0 to 18,446,744,073,709,551,615 (up to 20 digits)

When 64 bits is enough, and when it is not

64 bits works well for values that must be unpredictable or unique but that an attacker cannot test offline: short-lived nonces, cache-busting tokens, random database IDs, request or trace IDs, and invite codes behind rate limiting. It is not enough for long-term keys. A dedicated attacker can try 2^64 guesses offline with enough hardware, and the birthday effect means random 64-bit IDs have a 50 percent chance of one collision after about 5 billion values.

  • Use the 128-bit Secret Generator for session tokens, password reset links and API tokens.
  • Use the 256-bit Secret Generator for encryption keys, HMAC keys and JWT signing secrets.

Example

A 64-bit value in hex looks like this (yours will be different every time):

9f2c4e81a07b3d56

FAQ

What is a 64-bit secret?
A 64-bit secret is 8 bytes (64 bits) of cryptographically secure random data, often used for tokens, salts, and identifiers.
Is this tool secure?
Yes. Values use crypto.getRandomValues() in your browser. Nothing is sent to or stored on our servers.
Are generated secrets stored?
No. Generation is 100% local in your browser.
Is a 64-bit secret secure?
It is unpredictable, but 64 bits is short by modern standards for keys. Use it for IDs and nonces, and use 128 or 256 bits for anything that protects accounts or data.
How many characters is a 64-bit hex string?
16. Each hex character represents 4 bits.
Can I store the decimal form in a database?
Yes, in an unsigned 64-bit integer column (BIGINT UNSIGNED in MySQL). A signed BIGINT cannot hold values above 9,223,372,036,854,775,807.
Are generated secrets logged?
No. They are created in your browser and never sent to our server.

Keep exploring