Email Header Analyzer
Paste an email's headers to trace the servers it passed through with the delay at each hop, and see its SPF, DKIM and DMARC results and key headers. Runs in your browser.
Input
Output
Readme
What are email headers?
Every email carries headers above its text: who sent it, to whom, the subject and date, and a trail the mail servers add on the way. Email programs hide most of them, but they're the place to look when a message arrives late, lands in spam or seems to come from someone it doesn't.
How to find an email's headers
- Gmail: open the message, click the ⋮ menu and choose Show original. Copy the text from the top down to the message body.
- Outlook: open the message, then View message details (or File, Properties on Windows) and copy the Internet headers.
- Apple Mail: open the message and choose View, Message, All Headers, or View, Message, Raw Source.
- Thunderbird: open the message and choose View, Message Source.
Paste just the headers, or the whole source: the analyzer reads the headers and ignores the body.
What the analyzer shows
- Authentication: the SPF, DKIM and DMARC results the receiving server recorded in its Authentication-Results header, plus ARC when the email was forwarded through a mailing list or another service. A checked box is a pass, an empty red box a fail, and a dash a soft result such as softfail, neutral or none. Each result shows the details the server noted, such as the domain that was checked.
- Route: every server the email passed through, from the sender to your mailbox, taken from the Received headers. Each hop shows the server that sent the message and its IP address, the server that took it, the protocol, the time and the delay since the previous hop. The total time is from the first hop to the last.
- Key headers: From, To, Subject, Date, Message-ID, Return-Path, Reply-To, the mail program and other headers people often look for, with encoded names and subjects decoded.
Reading the results
- A long delay at one hop shows which server held the message, often a spam filter or a server that was busy.
- A negative delay means the clocks of two servers disagree a little; it isn't a problem with the email.
- SPF checks that the sending server may send for the domain in the return address, DKIM that a domain signed the message and nothing changed on the way, and DMARC that the domain in the From address matches one that passed SPF or DKIM, following that domain's policy.
- A missing result means the receiving server didn't record one. Many servers only add these headers to incoming mail, so a copy from your Sent folder usually has none.
The results come from the headers as the servers wrote them. Headers below the receiving server's own lines can be written by anyone, which is why the analyzer reads the authentication results from the topmost header that has them.
How it works
The headers are parsed with the postal-mime library, which unfolds long header lines and decodes encoded words. The Received and Authentication-Results lines are then read following their standards (RFC 5321 and RFC 8601). Everything runs in your browser, so the email's addresses and contents never leave your device.
Features
- SPF, DKIM, DMARC and ARC results
- Every hop with its server, IP address, protocol, time and delay
- Total delivery time
- Key headers with encoded words decoded
- Works with pasted headers or a whole email source
- Runs in your browser