Free HTTP Headers Parser

Parse and analyze HTTP headers from requests and responses. Free, fast, and works entirely in your browser with no sign-up required.

Updated

Share:
Home/Developer Tools/HTTP Headers Parser

HTTP Headers Parser

Parse and analyze HTTP headers. Get security scores and recommendations.

63
Security Score
C
3 Passed
5 Warnings
2 Missing
strict-transport-security
content-security-policy
x-frame-options
x-content-type-options
referrer-policy
permissions-policy
cross-origin-embedder-policy
cross-origin-opener-policy
cross-origin-resource-policy
x-xss-protection

Recommended Headers to Add

recommended
x-content-type-options
recommended
referrer-policy
recommended
permissions-policy
optional
cross-origin-embedder-policy
optional
cross-origin-opener-policy
Security Score63/100

HTTP Headers

Paste HTTP headers from browser DevTools, cURL, or any HTTP response.

Parsed Headers (10)

content
(1)
content-type
application/json; charset=utf-8

Indicates the media type of the resource

cache
(2)
cache-control
max-age=3600, public

Caching directives for both requests and responses

etag
"abc123"

Identifier for a specific version of a resource

security
(3)
x-frame-options
DENY

Prevents clickjacking by controlling iframe embedding

strict-transport-security
max-age=31536000; includeSubDomains

Forces HTTPS connections (HSTS)

Eligible for HSTS preload list - consider adding preload
content-security-policy
default-src 'self'

Controls resources the browser can load

response
(2)
server
nginx/1.18.0

Information about the server software

Consider removing to reduce information disclosure
set-cookie
session=abc123; HttpOnly; Secure; SameSite=Strict

Send cookies from server to client

general
(1)
date
Thu, 12 Dec 2024 10:30:00 GMT

Date and time the message was sent

cors
(1)
access-control-allow-origin
*

CORS: allowed origins for cross-origin requests

Wildcard (*) allows any origin - be cautious with credentials

Frequently Asked Questions

What is the HTTP Headers Parser?

The HTTP Headers Parser is a free online tool that parse and analyze http headers from requests and responses. It runs entirely in your browser with no installation or sign-up needed.

Is the HTTP Headers Parser free?

Yes, it is completely free with no registration required. All parsing happens client-side in your browser.

What information does it show?

The HTTP Headers Parser displays each header name and value with explanations of security implications, caching behavior, and content negotiation.

Is my data safe with this tool?

Absolutely. The HTTP Headers Parser processes everything client-side in your browser. No data is uploaded to or stored on any server. Your content remains private on your device at all times.

Does the HTTP Headers Parser work on mobile devices?

Yes, the HTTP Headers Parser 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 HTTP Headers Parser in your browser and start using it immediately. There are no sign-up walls or usage restrictions.

What programming languages or formats does this support?

The HTTP Headers Parser supports a wide range of popular formats and languages. Check the tool interface for the full list of supported options.

How do I use the HTTP Headers Parser?

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 HTTP Headers Parser 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 is the HTTP security score and letter grade calculated?

The parser audits ten weighted security headers and converts the result into a 0-100 score with a letter grade. Content-Security-Policy carries the most weight, followed by Strict-Transport-Security, while clickjacking and MIME-sniffing protections like X-Frame-Options and X-Content-Type-Options sit just behind them. Each header is checked as pass, warning, or missing: a present, well-configured header earns full points, a weak value earns partial credit, and a missing one earns none. The totals map to a grade where 90 and above is A+, 80 is A, 70 is B, 60 is C, 50 is D, and anything lower is F. This mirrors the grading approach used by industry tools but runs entirely in your browser. Paste your response headers above to see your score, grade, and exactly which checks passed.

What is the difference between request headers and response headers?

Request headers are sent by the browser or client to the server and describe the request itself: who is asking, what content they accept, and the context. Examples include Host, User-Agent, Accept, Authorization, and the Sec-Fetch family. Response headers are sent back by the server and describe the reply and how the client should treat it, covering Content-Type, Cache-Control, Set-Cookie, and security headers like Content-Security-Policy and Strict-Transport-Security. Some headers, such as Content-Type, appear in both directions with slightly different meanings. The distinction matters because security scoring and missing-header checks only apply to responses, while request analysis is about debugging what the client sent. This tool lets you switch between Request and Response mode so the categorization and warnings match exactly what you are analyzing. Paste your block above and pick the matching mode.

Why is my Set-Cookie header flagged as insecure?

The parser inspects each Set-Cookie value and warns when it is missing protective attributes. A cookie without HttpOnly can be read by JavaScript, which exposes it to cross-site scripting theft; without Secure it can travel over plain HTTP; and without SameSite it is more vulnerable to cross-site request forgery. Session and authentication cookies should almost always carry all three, for example HttpOnly; Secure; SameSite=Strict. The warning is a nudge, not an error, since a few cookies legitimately need to be readable by scripts, but for anything tied to login or identity the flags are best practice. The tool surfaces these issues inline as it parses so you can fix the header before shipping. Paste your Set-Cookie line above to see which attributes are present and which are recommended additions.

What value should I use for the Strict-Transport-Security (HSTS) header?

The widely accepted baseline is max-age=31536000; includeSubDomains, which tells browsers to use HTTPS for one full year (31,536,000 seconds) across the domain and all of its subdomains. Adding preload on top of that makes the domain eligible for the browser preload list, which hard-codes HTTPS so the very first visit is protected too. The parser scores HSTS as a full pass only when the max-age is at least one year and includeSubDomains is present; a shorter max-age earns a warning, and a missing header fails. Be cautious with includeSubDomains and preload, since they apply to every subdomain and are slow to undo, so confirm all subdomains support HTTPS first. The tool gives you a copy-ready recommended value and flags whether your current header qualifies for preload. Paste your headers above to check it.

What does it mean when my Content-Security-Policy uses 'unsafe-inline' or 'unsafe-eval'?

A Content-Security-Policy restricts where scripts, styles, and other resources can load from, which is one of the strongest defenses against cross-site scripting. The keywords 'unsafe-inline' and 'unsafe-eval' punch holes in that defense: 'unsafe-inline' allows inline scripts and styles written directly in the page, and 'unsafe-eval' permits eval-style execution of strings as code, both of which attackers can abuse. Because they weaken protection, the parser still counts a CSP that contains them as present but downgrades it to a warning rather than a full pass. The stronger pattern is to remove them and allow only trusted sources, often using nonces or hashes for any inline code you genuinely need. The tool detects these keywords as it parses and explains the impact. Paste your CSP header above to see whether it passes cleanly or triggers a warning.

About the HTTP Headers Parser

The HTTP Headers Parser is a free tool that turns a raw block of HTTP headers into a clear, categorized, security-graded report. Paste the headers from a response or request — one per line — and it instantly splits each line into a name and value, labels what the header does, flags risky configurations, and scores the overall security posture. It is built for backend and frontend developers, DevOps engineers, and security-minded site owners who need to understand what a server is actually sending without leaving the browser.

Everything runs locally on your device. Headers are parsed in JavaScript in your browser, so nothing you paste is uploaded to or stored on a server — useful when the headers contain a session cookie, an authorization token, or an internal hostname. There is no sign-up, no installation, and no usage limit.

What it parses and categorizes

The parser reads each line, takes everything before the first colon as the header name and everything after it as the value, and matches the name against a built-in library of more than 80 known headers. Each one is sorted into one of eight color-coded groups so you can see the shape of a response at a glance:

  • Security — Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, Referrer-Policy, Permissions-Policy, and more
  • CORS — the full Access-Control-Allow-* family that governs cross-origin requests
  • Cache — Cache-Control, ETag, Last-Modified, Expires, Vary, and the conditional If-* request headers
  • Content — Content-Type, Content-Length, Content-Encoding, Content-Disposition, and friends
  • Request, Response, General, and Performance — Host, User-Agent, Set-Cookie, Server, Server-Timing, and other context headers

Anything it does not recognize is kept and labeled as a custom or unknown header, so nothing gets dropped. A separate reference tab lists the most common headers by category for quick lookup.

Security score and missing-header checks

Beyond labeling, the HTTP Headers Parser audits ten weighted security headers and produces a 0–100 score with a letter grade from A+ down to F. Each check returns pass, warning, or missing, and the summary tallies how many of each you have. The heaviest weight goes to Content-Security-Policy, followed by HSTS, with clickjacking and MIME-sniffing protections close behind.

The tool also lists important headers you are missing, ranked by importance — critical, recommended, or optional — and gives a sensible recommended value you can copy with one click. For example, it suggests max-age=31536000; includeSubDomains for HSTS and nosniff for X-Content-Type-Options. These reflect widely accepted best practices: an HSTS max-age of one year (31,536,000 seconds) with includeSubDomains and preload is the standard for qualifying for the browser preload list.

Per-header validation and use cases

As it parses, the tool inspects individual values and surfaces practical warnings. It flags a Set-Cookie that is missing the HttpOnly, Secure, or SameSite attributes; a Content-Security-Policy that relies on 'unsafe-inline' or 'unsafe-eval'; an Access-Control-Allow-Origin wildcard combined with credentials; and information-disclosure headers like Server and X-Powered-By that reveal your stack.

Common workflows include hardening a site before launch, debugging why a browser blocked a cross-origin request, confirming that a CDN is sending the cache headers you expect, and reviewing a competitor's or vendor's response. Copy a header block out of Chrome or Firefox DevTools, a cURL response, or your server config, paste it in, and switch between Request and Response mode to match what you are analyzing.