How to Export Gmail Emails by Date Range
after:2026/01/01 before:2026/04/01 in Gmail so only emails between those dates show, then use a free browser extension to export the view to CSV. You get one row per email in that window — sender, subject, date and snippet — saved straight to your device, with nothing uploaded.Exporting by date is one of the most common real-world needs: a quarter of emails for bookkeeping, a year for an archive, or just last month for a report. Gmail's search operators make defining the window trivial once you know the syntax, and a one-click export turns that window into a spreadsheet you can sort and file. Here's the exact method.
The two operators that do the work
Gmail uses after: and before: with dates in YYYY/MM/DD format. Combine them to bracket a range:
after:2026/01/01— emails from Jan 1, 2026 onward.before:2026/04/01— emails up to March 31, 2026 (thebefore:date is exclusive).after:2026/01/01 before:2026/04/01— the whole first quarter of 2026.
Because before: doesn't include its own date, set it to the day after the last day you want. To capture all of March, use before:2026/04/01, not before:2026/03/31.
Relative ranges
When you'd rather not type exact dates, Gmail accepts relative windows:
| You want | Search |
|---|---|
| Last 7 days | newer_than:7d |
| Last 30 days | newer_than:30d |
| Last 6 months | newer_than:6m |
| Older than a year | older_than:1y |
| Last year, excluding recent | newer_than:2y older_than:1y |
Use d for days, m for months and y for years. These are handy for recurring exports — "the last 30 days" stays correct whenever you run it.
Export the date-bounded view in one click
- Install Gmail Exporter from the Chrome Web Store — free, no account.
- Type your date query (for example
after:2026/01/01 before:2026/04/01) and press Enter. - Scroll to confirm the range loaded, then click Export and choose CSV, Excel or JSON.
- Open the file — one row per email, each with its date, ready to sort.
The export mirrors exactly what Gmail is showing, so the file contains your chosen window and nothing outside it. It all runs locally in the browser, which keeps a date-bounded slice of sensitive mail on your own machine.
Export any date range to a spreadsheet — free
One quarter, one year, or last month — captured in one click, privately.
Add to Chrome — It's FreeCombine a date range with other filters
Date operators stack with everything else Gmail search offers, so you can carve out a very specific slice before exporting:
| Goal | Search |
|---|---|
| One client, this quarter | from:maria@acme.com after:2026/01/01 before:2026/04/01 |
| One label, last 90 days | label:receipts newer_than:90d |
| Attachments in a date window | has:attachment after:2026/01/01 |
| A search term in a range | invoice after:2026/01/01 before:2026/04/01 |
To pull every message from a single person across a window, pair this with the technique in exporting all emails from one sender.
What people use date-range exports for
Quarterly and year-end bookkeeping
Accountants and freelancers export a quarter or tax year of receipt and invoice emails, then sort by date in a spreadsheet. A clean dated list beats scrolling through Gmail at tax time.
Periodic backups
Exporting "everything older than two years" lets you keep a tidy archive of old mail before you clean up your inbox. For a whole-mailbox approach, see backing up your Gmail inbox.
Reporting
Need a record of all activity in a campaign month or project sprint? A newer_than:30d export gives you a dated snapshot you can drop into a report or share with a teammate.
Date-range export vs. Google Takeout
Google Takeout can filter mail by label but not cleanly by an arbitrary date range, and it delivers one big MBOX archive rather than a sortable list. For "just Q1" or "just last month," a view-based export is far quicker: you define the window in the search bar and the file comes out already scoped. There's no archive to unpack and no mail client to import into.
Tips for accurate date exports
- Remember
before:is exclusive — add a day to include the final date you want. - Mind the time zone — Gmail dates follow your account's zone, so a late-night email can land on the next day's date.
- Let long ranges load fully before exporting so the earliest emails aren't cut off.
- Save relative queries like
newer_than:30dif you run the same export each month.
The off-by-one trap, explained
The single most common date-range mistake is losing the last day. Because before: is exclusive, before:2026/03/31 stops at March 30 and silently drops everything from March 31. To include a full final day, always set before: to the next day: before:2026/04/01 captures all of March. The same logic applies at quarter and year boundaries — before:2027/01/01 is how you include all of 2026.
Time zones add a second wrinkle. Gmail assigns each email a date in your account's time zone, so a message that arrived at 11:40 pm on March 31 in one zone can register as April 1 in another. For day-precise exports — a single day's activity, say — be aware that messages near midnight can land on the neighbouring date. If an email seems to fall just outside your range, widen the window by a day and check.
Recurring exports for monthly reporting
If you export the same window regularly — last month's receipts, this week's project mail — relative operators save you re-typing dates each time. newer_than:30d always means "the last 30 days" whenever you run it, so you can bookmark the search URL and re-run it on a schedule. A simple monthly routine looks like this:
- Open your saved search (for example
label:receipts newer_than:31d). - Scroll to confirm the full month loaded.
- Export to CSV and name the file with the month —
receipts-2026-06.csv. - Append it to your running spreadsheet or accounting folder.
Over a year you accumulate a tidy, dated archive without ever touching Google Takeout. For a whole-mailbox snapshot rather than a rolling window, pair this habit with backing up your Gmail inbox, which covers periodic full backups.
Frequently asked questions
How do I export Gmail emails from a specific date range?
Search after:2026/01/01 before:2026/04/01 so only that window shows, then export the view to CSV with a browser extension. One row per email, scoped to those dates.
What date format does Gmail use?
YYYY/MM/DD, e.g. after:2025/12/31. You can also use relative ranges like newer_than:30d or older_than:1y.
Is the before: date included?
No, it's exclusive. before:2026/04/01 stops at March 31. To include a final day, set before: to the day after it.
Can I export the last 30 days?
Yes — search newer_than:30d, then export. Use d, m and y for days, months and years.
Can I combine a date range with other filters?
Yes. Add from:, label: or has:attachment, e.g. label:clients after:2026/01/01. The export captures the filtered view.
Is exporting by date range private?
Yes. A local extension reads on-screen emails in your browser and writes the CSV locally — nothing is uploaded.