Security Headers Checker
Paste HTTP response headers to analyze security config with grading, CSP/HSTS/cookie checks, and cross-origin policy analysis.
Updated
Security Headers Checker
Paste your HTTP response headers to analyze security configuration. Check for CSP, HSTS, X-Frame-Options, cookie flags, cross-origin policies, and more. Get a security grade with prioritized recommendations.
Paste HTTP Response Headers
Paste your HTTP response headers above to begin analysis
Get headers from curl -I https://yoursite.com or browser DevTools (Network tab → click a request → Response Headers). You can also load a sample to see how the tool works.
Frequently Asked Questions
What is the Security Headers Checker?
The Security Headers Checker is a free online tool that paste http response headers to analyze security config with grading, csp/hsts/cookie checks, and cross-origin policy analysis.. It runs entirely in your browser with no installation or sign-up needed.
What headers does it check?
CSP, HSTS, X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy, COOP/COEP/CORP, X-XSS-Protection, Cache-Control, and Set-Cookie security flags.
How is the grade calculated?
Each header is weighted by severity. Proper config earns full weight, misconfigured earns partial, missing earns zero. Total maps to A+ through F.
Is it safe to paste my headers?
Yes. All analysis runs in your browser. No data sent to any server.
Is the Security Headers Checker free to use?
Yes, the Security Headers Checker is 100% free with no registration, no hidden fees, and no usage limits. All processing happens locally in your browser, ensuring complete privacy.
Does the Security Headers Checker work on mobile devices?
Yes, the Security Headers Checker is fully responsive and works on smartphones and tablets. You can use it on any device with a modern web browser -- no app download required.
Do I need to create an account to use this tool?
No account or registration is needed. Simply open the Security Headers Checker in your browser and start using it immediately. There are no sign-up walls or usage restrictions.
How do I use the Security Headers Checker?
Simply enter your input in the provided field, adjust any settings to your preference, and the tool will process it instantly. You can then copy the result to your clipboard or download it.
Which browsers are supported?
The Security Headers Checker works in all modern browsers including Chrome, Firefox, Safari, Edge, and Opera. For the best experience, use the latest version of your preferred browser.
How do I get the HTTP response headers to paste into the checker?
There are two quick ways. From the command line, run curl -I https://example.com and copy the response, which prints each header on its own line. From the browser, open DevTools, switch to the Network tab, reload the page, click the top document request, and copy the Response Headers section. Either way, paste the lines into the box in Key: Value format, one header per line. The leading status line such as HTTP/2 200 OK is fine to include and is skipped automatically. Because the curl and DevTools methods request the page as a real client, they capture the exact headers a browser receives, including Set-Cookie and cache directives. If you just want to see how grading works, load the built-in Secure or Weak example instead and inspect the per-header breakdown.
What makes a Strict-Transport-Security (HSTS) header strong?
A strong HSTS header tells browsers to only ever connect over HTTPS for a long time and to cover every subdomain. The checker looks for three things: a max-age of at least 31536000 seconds (one year), the includeSubDomains directive so subdomains inherit the same HTTPS-only rule, and the preload flag. A short max-age, like a few days, leaves a long window where a downgrade or man-in-the-middle attack can strip HTTPS, so the tool flags anything under a year and shows the value in days. The preload flag matters because it makes your domain eligible for the browser HSTS preload lists shipped in Chrome, Firefox, and Safari, which enforce HTTPS even on a user's very first visit. Paste your headers to see exactly which of these three pieces your HSTS is missing.
What is the difference between X-Frame-Options and CSP frame-ancestors?
Both defend against clickjacking by controlling whether your page can be embedded in an iframe, but frame-ancestors is the modern replacement. X-Frame-Options is older and only supports DENY and SAMEORIGIN reliably; its ALLOW-FROM value is deprecated and ignored by Chrome, Firefox, and Safari, so the checker marks ALLOW-FROM as misconfigured. The Content-Security-Policy frame-ancestors directive does the same job but is more flexible: it accepts a list of allowed origins and is honored consistently across current browsers. Best practice is to ship frame-ancestors 'none' or a specific allow-list in your CSP, and keep X-Frame-Options: SAMEORIGIN only as a fallback for very old browsers. The tool checks for a missing frame-ancestors directive in your CSP and flags it separately. Paste your headers to confirm your clickjacking protection covers both layers correctly.
Why does the checker recommend setting X-XSS-Protection to 0?
It looks backwards, but 0 is the correct modern value. X-XSS-Protection enabled a legacy XSS auditor that older browsers built in, but that auditor had known bypasses and, worse, could itself be abused to selectively disable parts of a page or leak whether certain content was present. Modern browsers have removed it entirely, so a value like 1; mode=block does nothing useful and can give a false sense of safety. Explicitly sending X-XSS-Protection: 0 turns off any residual legacy behavior in browsers that still recognize the header. The real defense against cross-site scripting today is a strict Content-Security-Policy that blocks inline and untrusted scripts, which is why the tool weights CSP heavily and treats this header as deprecated. Paste your headers to see whether your CSP is doing the heavy lifting instead.
Which cookie security flags does the tool check, and why do they matter?
The checker inspects every Set-Cookie header for three flags: Secure, HttpOnly, and SameSite. Secure ensures the cookie is only sent over HTTPS, so it cannot be intercepted on an unencrypted connection. HttpOnly hides the cookie from JavaScript, which stops an XSS payload from stealing a session token through document.cookie. SameSite controls whether the cookie is sent on cross-site requests; Strict or Lax helps block cross-site request forgery, while None requires Secure to be present. Session and authentication cookies should carry all three, and the tool flags any cookie missing them so you know which ones leave a user exposed. Because everything is parsed in your browser, you can safely paste authenticated responses that contain real Set-Cookie values. Paste your headers to get a per-cookie list of which flags are set and which are absent.
Embed This Tool
Add a free, live version of this widget to your own website or blog post — it runs entirely in your visitors' browsers, with a credit link back to The Toolbox.
<iframe src="https://getthetoolbox.com/embed/security-headers-checker" title="Security Headers Checker — The Toolbox" width="100%" height="380" style="max-width:480px;border:1px solid #e2e8f0;border-radius:12px" loading="lazy"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://getthetoolbox.com/website-tools/security-headers-checker?utm_source=embed&utm_medium=widget" target="_blank" rel="noopener">Free Security Headers Checker</a> by The Toolbox</p>Related Tools
Free Website Speed Test
Analyze website page load time, performance metrics, and optimization opportunities. Free, fast, and works entirely in your browser with no sign-up required.
Free Mobile Friendly Test
Check if your site is optimized for mobile devices. Free, fast, and works entirely in your browser with no sign-up required.
Free Meta Tag Extractor
Extract and review all meta tags from any webpage for SEO and social media analysis. Free, fast, and works entirely in your browser with no sign-up required.
Free Website Screenshot Tool
Capture full-page or viewport screenshots of any webpage for design review and testing. Free, fast, and works entirely in your browser with no sign-up required.
About the Security Headers Checker
The Security Headers Checker is a free tool that reads your HTTP response headers and grades how well they defend a website against common browser-based attacks. Paste the raw headers from a request and it parses each line, evaluates twelve security-relevant headers, and returns an overall letter grade from A+ to F alongside a score out of 100. It is built for developers, site owners, and security reviewers who want a fast, plain-language read on whether a site is missing important protections or shipping them misconfigured.
Everything runs in your browser. The headers you paste are never uploaded to a server — they are parsed and analyzed entirely client-side, so you can safely check internal staging environments, authenticated responses, or production sites that include Set-Cookie values without that data leaving your device.
How to use it
Grab your headers two common ways and paste them into the box:
- From the command line — run
curl -I https://example.comand copy the response. - From the browser — open DevTools, go to the Network tab, click the document request, and copy the Response Headers.
Each header should sit on its own line in Key: Value format; the leading HTTP/2 200 OK status line is fine to include and is skipped automatically. If you just want to see how it works, load the built-in Secure or Weak example. Results appear instantly across three tabs: Header Details with per-header explanations and copy-ready recommended values, a prioritized Recommendations list, and a Parsed Headers view of everything it read. You can copy a full text report or download a CSV of the findings.
What it checks
The tool evaluates twelve headers and cookie flags, marking each as properly configured, needs improvement, or missing:
- Content-Security-Policy — checks for a
default-srcfallback, missingframe-ancestors,base-uri, andform-action, and flags weakening sources like'unsafe-inline','unsafe-eval',data:, and wildcards inscript-src. - Strict-Transport-Security (HSTS) — verifies
max-ageis at least one year (31536000 seconds) plusincludeSubDomainsandpreload. - X-Content-Type-Options, X-Frame-Options, Referrer-Policy, and Permissions-Policy — validates correct values and flags deprecated patterns such as
X-Frame-Options: ALLOW-FROM, which modern browsers ignore. - Cross-Origin policies (COOP, COEP, CORP) — confirms isolation values that protect against Spectre-style side-channel attacks.
- X-XSS-Protection — treated as deprecated; the tool recommends
0because the legacy auditor has known bypasses, and Content-Security-Policy is the modern replacement. - Cache-Control and Set-Cookie — flags caching that exposes sensitive pages, and checks every cookie for the
Secure,HttpOnly, andSameSiteflags.
How the grade is calculated
Each header is weighted by severity rather than counted equally. Critical headers like CSP and HSTS carry the most weight, high-severity headers such as X-Frame-Options and cookie flags carry less, and deprecated checks carry the least. A properly configured header earns its full weight, a misconfigured one earns partial credit, and a missing one earns nothing. The earned weight is divided by the total to produce the 0–100 score, which then maps to a letter grade — A+ at 95 and above, scaling down through B, C, and D to F.
That weighting is why a real fix matters more than a long list of present-but-broken headers: shipping a strict, complete CSP moves your grade far more than adding a deprecated header. Use the prioritized recommendations to tackle the highest-severity gaps first, copy the suggested values directly into your server or CDN configuration, and re-paste the updated headers to confirm the grade improved.