WWW-Authenticate Builder & Parser
Generate WWW-Authenticate challenge values or parse one or more challenges with quoted realm, scope, and error parameters. Validates tokens and warns about insecure Basic transport and malformed values locally.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Reading and writing a 401 challenge
Parse mode takes one or more WWW-Authenticate challenges — the kind that appear on a 401 response — and lists each scheme with its auth parameters, so realm, scope, error and anything else come out as separate rows. Build mode emits a challenge string for the Basic or Bearer scheme from the realm, scope and error options.
Debugging an authentication handshake
Use it when an API returns 401 and you want to read the terms the server offered, when you are writing a client and need to know exactly how a server formatted its challenge, or when producing the challenge your own service will return.
Options
Mode chooses parse or build. In build mode, Scheme selects Basic or Bearer, Realm supplies the quoted realm value, and the optional Bearer scope and Bearer error parameters are added when non-empty. In parse mode the pasted text is what matters and the options are ignored.
What it validates and what it does not
It checks that the scheme is a valid token, that parameters are well-formed quoted or token values, that a realm is not empty, and that no parameter repeats. It never handles passwords or tokens and never makes a request. Basic credentials over plain HTTP remain a serious problem — Base64 is encoding, not encryption — and the tool says so.
Parsed without touching the network
Challenges are parsed in your browser and nothing is transmitted, so a header copied from a production 401 is safe to inspect here. It keeps working with no connection.
Questions
Does this validate credentials?
No. It only builds and parses challenge metadata. It never handles passwords, tokens, or network requests.
Is Basic authentication secure?
Basic credentials must be protected by HTTPS and appropriate server controls. Base64 is encoding, not encryption.
What is a Bearer scope?
It is a server-declared space-delimited scope hint for the requested authorization context. Exact meaning depends on the authorization system.
Related tools
See category- HTTP Basic Auth Header
- Set-Cookie Builder & Analyzer
- HTTP Security Headers Analyzer
- :nth-child An+B Evaluator
HTTP Basic Auth Header
Build or decode HTTP Basic Authorization headers, UTF-8 safe.
Set-Cookie Builder & Analyzer
Build or review Set-Cookie headers and their security attributes locally.
HTTP Security Headers Analyzer
Review pasted HTTP response headers for common browser security protections.
:nth-child An+B Evaluator
Parse CSS An+B (:nth-child, :nth-of-type) microsyntax, validate it, and list which child indices it matches.