Skip to content

Email Header Analyzer

Read From, To, Subject, Date, and Message-ID from header text you paste. A Subject of Hello is the headline. The page does not contact a mail server.

Result

Paste headers

How to Use

  1. 1 Paste up to 20000 characters.
  2. 2 Choose Read the headers.
  3. 3 Subject Hello is the headline when that line is present.

Example Output

  • From: Ada <ada@example.com> Subject: Hello

About This Tool

Each kept line needs a field name, a colon, and a value. Folded lines that start with a space are joined to the previous value.

Using the Email Header Analyzer

The Email Header Analyzer reads selected lines from header text you paste. The field starts with two lines: From: Ada <ada@example.com> and Subject: Hello. Choose Read the headers. The label above the headline reads Subject. The headline is Hello. The result lists From: Ada <ada@example.com> and Subject: Hello. The page keeps From, To, Subject, Date, and Message-ID when those lines are present. It does not contact a mail server. The sample has no To, Date, or Message-ID line, so those labels stay off the result.

Each kept line needs a field name, a colon, and a value. A line Hello without a colon is rejected with Each header line needs a field, a colon, and a value. The rejection replaces the headline and clears the listed fields. An empty line is skipped. A continuation line that starts with a space or a tab is joined to the previous value, with the extra space folded in. Subject: Hello followed by a continuation of world becomes the value Hello world, and the headline is Hello world.

The paste must contain from 1 to 20000 characters after the blank check. A field that is empty after trimming, or a paste longer than 20000 characters, is rejected with Enter from 1 to 20000 characters. If the lines parse and none of them is From, To, Subject, Date, or Message-ID, the message is Include a From, To, Subject, Date, or Message-ID line. Other field names can appear in the paste. They are not listed in the result. When Subject is missing and another kept field is present, the headline is Headers.

Copy result copies the kept lines. For the sample, that copy is From: Ada <ada@example.com> and Subject: Hello. Reset returns the field to those two lines and the headline to Paste headers. The listed fields are cleared. Copy before you reset. Read the headers again after a reset if you want the headline Hello back. The waiting line Paste headers is not a subject.

The result order is fixed even when the paste order is not. From comes first, then To, then Subject, then Date, then Message-ID, and only the ones you included. A paste that puts Subject above From still lists From first and still uses Hello as the headline when the subject value is Hello. A continuation that begins with a space joins the value above it. Subject: Hello and a following line that starts with a space and the word team become the headline Hello team. A line that starts at the left margin is a new field and needs its own colon. A line Hello without a colon is rejected before any of the five fields are listed. The page does not contact a mail server while it reads the paste, and it does not fill in a From address you left out.

What the Page Keeps From the Paste

The result lists From, To, Subject, Date, and Message-ID, and only those, in that order, when the paste contains them. The sample contains From and Subject, so the result is From: Ada <ada@example.com> and Subject: Hello. The headline is the Subject value, which is Hello. The label above that headline reads Subject. If Subject is absent, the headline is Headers and the other kept lines still appear.

A later line with the same field name replaces the earlier value. Two Subject lines leave the second value as the headline. Subject: Hello followed later by Subject: Hello again leaves the headline Hello again. From works the same way, and the result does not stack both values. The field name is matched without regard to the capital letters, and the label in the result uses From, To, Subject, Date, or Message-ID. The page does not contact a mail server. It reads the text in the field and stops. Date is kept as the text after the colon. The page does not turn that text into a separate calendar calculation. Folded text is joined with a single space when the next line is a continuation. The page does not rewrite Ada or Hello into another spelling.

How From and Subject Become the Result

The page checks the length, then reads the paste line by line. A blank line is skipped. A line that starts with a space or a tab continues the previous value. Any other line must match a field name, a colon, and a value that contains a non-space character. From: Ada <ada@example.com> supplies the From line. Subject: Hello supplies the headline Hello. The steps under the result say to read each header line, keep From, To, Subject, Date, and Message-ID, and not contact a mail server.

A mailto link is a different assembly of an address and a subject. The Mailto Link Generator builds a mailto link from an email address and an optional subject. user@example.com and Hello becomes mailto:user@example.com?subject=Hello. That page does not send the mail. Use it when you want that link. Use this page when you already have header lines and want From and Subject read from the paste. The sample headline is Hello.

What the Reader Does Not Do With the Mail

The page does not contact a mail server. It does not send, receive, or reply. From: Ada <ada@example.com> is text in the result, and Subject: Hello is the headline. The address stays inside the From value you pasted. The page does not look up the address, and it does not open a mailbox. If a line you care about is missing, it was not in the paste or it was not one of the five kept fields.

Lines outside those five can still be present so the paste parses. A Received line with a colon and a value is accepted and then omitted from the result. The headline still comes from Subject when Subject is present. If the only lines are outside the five, the page says Include a From, To, Subject, Date, or Message-ID line. Add one of those lines and read the headers again. A line Hello without a colon never gets that far, because it fails the colon rule first.

From Ada and Subject Hello

Leave the field as From: Ada <ada@example.com> and Subject: Hello. Choose Read the headers. The headline is Hello. The result lists those two lines and no others. Read again. The headline stays Hello. Add a line To: Bea <bea@example.com> and read. The result lists From, then To, then Subject, and the headline is still Hello. Add Date: Mon, 1 Jan 2024 00:00:00 +0000 and read. Date appears with that text. The result lists From, To, Subject, Date, and Message-ID in that order, whatever order the lines had in the paste. The headline stays Hello.

A web address in a value is still header text here. The URL Parser splits an http or https URL into its parts. https://www.nimbtools.com/path?a=1#top has the host www.nimbtools.com. That page does not open the URL. Use it when the job is to split a URL. Use this page when the job is to keep From, To, Subject, Date, and Message-ID from a paste. The sample headline remains Hello.

Lines, Length, and the Five Fields

The paste must be from 1 to 20000 characters. Enter from 1 to 20000 characters is the message for a blank field and for a longer paste. Each remaining line needs a field, a colon, and a value, unless it is blank or a continuation. Each header line needs a field, a colon, and a value is the message for Hello with no colon, for a line with a colon and no value, and for a line that starts with a digit. The page does not keep a partial list when one line fails.

After a valid parse, the result includes only From, To, Subject, Date, and Message-ID. Include a From, To, Subject, Date, or Message-ID line is the message when none of those five appeared. The headline is the Subject value when Subject appeared, and Headers when Subject did not. Continuation lines join the previous value. They do not create a new field. Message-ID: <sample@example.com> is kept as that text when the line has a colon and a value. To: Bea <bea@example.com> is kept as the To line. The sample without those lines lists only From and Subject. The headline is Hello in both cases, as long as Subject: Hello is in the paste. The page does not contact a mail server at any of these steps.

Header Lines People Expect the Page to Guess

A common miss is to paste Hello on its own line. A line Hello without a colon is rejected. The line needs a field, a colon, and a value, as in Subject: Hello. Another miss is to expect every header in the paste to appear in the result. The page keeps From, To, Subject, Date, and Message-ID. Another miss is to expect the page to contact a mail server and fetch headers you did not paste. It reads the field only. Another miss is to treat a folded line that starts at the left margin as a continuation. A continuation starts with a space or a tab. A new line that starts with a letter needs its own colon.

A token with a coded header and payload is a different paste. The JWT Decoder decodes the header and the payload of a JSON Web Token. That page does not check the signature, so a decoded payload is not proof that the token is genuine. Use it when the paste is a token. Use this page when the paste is mail header text and the sample headline should be Hello.

A Clean Sample, a Fold, and a Rejection

Read the sample. The headline is Hello, and the result contains From: Ada <ada@example.com> and Subject: Hello. Add Message-ID: <sample@example.com> and read. Message-ID appears with that value, and the headline stays Hello. Change Subject to Subject: Hello and put a continuation line that starts with a space and the word there. Read. The headline is Hello there, because the continuation joined the value. Remove the continuation and confirm the headline is Hello again.

Replace the paste with the single line Hello and read. The headline reads Each header line needs a field, a colon, and a value. Restore the two sample lines and read. The headline is Hello. Clear the field and read. The headline reads Enter from 1 to 20000 characters. Restore the sample once more so Copy result can carry From and Subject. The page does not contact a mail server during any of these reads.

Saving the Kept Lines

Copy result copies the kept lines, each with its label. For the sample, the copy contains From: Ada <ada@example.com> and Subject: Hello. The headline Hello is the Subject value, so the copy and the headline agree on that word. If you added To, Date, or Message-ID, those lines are in the copy in the kept order. A note that records only Hello loses the From address. Copy the lines before you reset. Reset returns the field to the two sample lines and the headline to Paste headers.

Pasted rules for a crawler are a different text. The Robots.txt Validator checks robots.txt text that you paste. A User-agent line and a Disallow line are valid. That page does not fetch a host. Use it when the paste is robots.txt text. Use this page when the paste is mail headers and you need From, To, Subject, Date, and Message-ID. The sample subject is Hello.

Five Fields, Read From the Paste

Every successful read lists the kept fields that were present and uses Subject as the headline when Subject was one of them. The sample headline is Hello. The From line is Ada <ada@example.com>. The page keeps From, To, Subject, Date, and Message-ID. It does not contact a mail server. A line Hello without a colon is rejected. A paste with none of the five fields is rejected after the lines parse. A blank paste is rejected for length.

Read the headline against the Subject line before you copy. If the headline is Hello and the result lists From and Subject from the sample, the read matched the field. Copy result then carries those lines. Reset when you want the field back at the sample and the headline back at Paste headers. Read the headers again after a reset before you treat the page as showing Hello.

Checks Before You Copy the Headers

Confirm each line you meant to keep has a field name, a colon, and a value. Confirm the headline matches the Subject value. For the sample, the headline is Hello and From is Ada <ada@example.com>. Confirm you did not leave a bare Hello line in the paste. An error headline means nothing was listed. Enter from 1 to 20000 characters, Each header line needs a field, a colon, and a value, and Include a From, To, Subject, Date, or Message-ID line each name a different failure. Fix that failure and read once.

Language tags in a page are a different check. The Hreflang Validator checks hreflang tags you type, one per line. en is valid. english is not. That page does not fetch a site. Use it when the lines are hreflang tags. Use this page when the lines are mail headers. The sample stays From: Ada <ada@example.com> and Subject: Hello, and the headline stays Hello.

Frequently Asked Questions

What does the sample paste return?

The headline is Hello. The result lists From: Ada <ada@example.com> and Subject: Hello. The label above the headline reads Subject. The page keeps those fields from the paste. It does not contact a mail server.

Which header fields are kept?

From, To, Subject, Date, and Message-ID. Other lines can be present if they have a field, a colon, and a value, and they are omitted from the result. If none of the five is present, the message is Include a From, To, Subject, Date, or Message-ID line.

What happens to a line Hello without a colon?

It is rejected. Each header line needs a field, a colon, and a value. Subject: Hello is the line that produces the headline Hello. A bare Hello never becomes the subject. The listed fields are cleared when the line fails.

Does the page contact a mail server?

No. The page reads the header text you paste. It does not contact a mail server, and it does not send mail. From: Ada <ada@example.com> stays text in the result. The headline Hello is the Subject value from the paste.

What is the headline when Subject is missing?

The headline is Headers, as long as From, To, Date, or Message-ID is present. When Subject is present, the headline is the Subject value. In the sample that value is Hello. A second Subject line replaces the first.

How long can the paste be?

From 1 to 20000 characters. A blank field and a longer paste are rejected with Enter from 1 to 20000 characters. The page does not keep the first 20000 characters of a longer paste. Shorten the field and read again.

How does a folded line work?

A line that starts with a space or a tab is joined to the previous value. Subject: Hello followed by a continuation of world becomes Hello world, and that joined value is the headline. A line that starts at the left margin needs its own field, colon, and value.

What does reset restore?

The field returns to From: Ada <ada@example.com> and Subject: Hello. The headline returns to Paste headers. The listed fields are cleared. Choose Read the headers again when you want the headline Hello.