Skip to main content
Toolzum

OAuth State Validator

Validate OAuth state parameters for format, length, and age — catch CSRF holes before they ship. Nothing leaves your browser.

100% Local Browser Native

How to Use the OAuth State Validator

1. Paste the state value

The OAuth state parameter your app generated for this login.

2. Read format, length, age

Short, predictable or stale states flag CSRF holes before they ship.

3. Harden generation

Use cryptographic randomness with expiry, then revalidate.

Similar Tools You Might Need

See all

Frequently Asked Questions

What does the state parameter do?

The OAuth state parameter prevents CSRF attacks by ensuring the authorization response matches your original request. It must be unpredictable and tied to the user's session.

What makes a state parameter valid?

A valid state is a cryptographically random string (at least 32 characters), properly encoded for URL use, and not expired. It should be stored server-side for verification.

Can I check if a state has expired?

Yes. Enter the state and its creation timestamp. The tool calculates the age and checks against configurable expiration thresholds (default 10 minutes).

Does it validate the format?

Yes. Checks for minimum length (32 chars), URL-safe characters only, and no whitespace. Flags weak or predictable state values.

Is my state data uploaded?

No. All validation happens locally in your browser. No state data is transmitted to any server.

Last updated October 2026