Date to Epoch Converter

Convert any date and time to Unix epoch seconds, milliseconds, microseconds, and nanoseconds with timezone support and bulk CSV export.

Updated

Share:
Home/Converter Tools/Date to Epoch Converter

Date to Epoch Converter

Convert any date and time to Unix epoch (seconds, milliseconds, microseconds, nanoseconds), ISO 8601, and GMT — with timezone support and bulk CSV export.

Input

Select a date

Frequently Asked Questions

What is the Date to Epoch Converter?

A tool that converts any date and time into Unix epoch values in seconds, milliseconds, microseconds, and nanoseconds, along with ISO 8601 and GMT representations.

Does it support timezones?

Yes. Local, UTC, and 17 common IANA timezones. Daylight-saving transitions are handled correctly via the Intl API.

Can I convert many dates at once?

Yes — Bulk tab accepts one date per line in any format (ISO, RFC 2822, "April 15 2026", etc.) and downloads a full CSV.

Is the Date to Epoch Converter free to use?

Yes, the Date to Epoch Converter is 100% free with no registration, no hidden fees, and no usage limits. All processing happens locally in your browser, ensuring complete privacy.

Is my data safe with this tool?

Absolutely. The Date to Epoch Converter 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 Date to Epoch Converter work on mobile devices?

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

How do I use the Date to Epoch Converter?

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 Date to Epoch Converter works in all modern browsers including Chrome, Firefox, Safari, Edge, and Opera. For the best experience, use the latest version of your preferred browser.

What is a Unix epoch timestamp and why does it start in 1970?

A Unix epoch timestamp is a single number that counts how much time has passed since the "epoch" — midnight UTC on 1 January 1970. That reference point was chosen by the early Unix engineers as a convenient, round starting date, and it has been the standard ever since. Because the value is just an elapsed count from a fixed instant, it carries no timezone or formatting of its own, which makes it ideal for storing, sorting, and comparing times across systems and languages. By default the count is in seconds, so a date in 2026 lands near 1.7 billion. Paste or pick any date in this converter and it instantly returns the matching epoch value alongside the human-readable ISO 8601 and GMT forms, so you can read or generate timestamps without doing the math yourself.

What is the difference between epoch seconds and epoch milliseconds?

Both measure the time elapsed since 1 January 1970, but at different resolutions. Epoch seconds count whole seconds, so the value has roughly 10 digits today — this is what Unix utilities and `date +%s` produce. Epoch milliseconds count thousandths of a second, giving a 13-digit number, and it is what JavaScript's `Date.now()` and many JSON APIs use. The milliseconds value is simply the seconds value multiplied by 1000, so mixing them up by a factor of 1000 is the most common timestamp bug: a millisecond value fed to a seconds-based field jumps you tens of thousands of years into the future. This converter shows seconds, milliseconds, microseconds, and nanoseconds side by side with a copy button on each, so you can grab the exact unit your database, API, or token expects without miscounting digits.

Why do epoch microseconds and nanoseconds end in zeros?

The converter derives every unit from a JavaScript date, which only tracks time down to the millisecond — it has no built-in way to measure microsecond or nanosecond fractions. To produce those larger units it scales the millisecond value up: microseconds multiply by 1,000 and nanoseconds by 1,000,000. That math is exact for the milliseconds you supply, but it adds trailing zeros rather than real sub-millisecond detail, so a microsecond result always ends in three zeros and a nanosecond result in six. The values are perfectly valid for any system that simply needs the right magnitude or digit count; they just cannot represent precision finer than a millisecond, because that precision was never in the input. If you need true sub-millisecond accuracy, capture it at the source. Otherwise, copy the scaled unit your API requires straight from the result card.

Why does the same date give a different epoch in different timezones?

A Unix timestamp marks one absolute instant in time, but a wall-clock date like "15 April 2026, 2:30 PM" is ambiguous until you say which zone it belongs to — 2:30 PM in London is a different moment than 2:30 PM in Tokyo, so each maps to a different epoch number. That is why the date-picker tab asks you to choose a timezone: it resolves your local clock reading into the correct absolute instant before computing the epoch. The tool uses the browser's `Intl` engine and runs a second pass so daylight-saving "spring forward" and "fall back" boundaries still convert correctly. Free-form and bulk inputs follow standard rules: a trailing `Z` or explicit offset is read as UTC, while a bare date is taken in your local zone. Pick the right zone in the picker to get the exact epoch you intend.

How can I check that a date-to-epoch conversion is correct?

The fastest sanity check is the UTC breakdown the tool shows beneath the epoch values: it lists the year, month, day, weekday, hour, minute, and second that your timestamp actually represents, so you can confirm at a glance that the instant matches what you intended. Also compare the ISO 8601 and GMT strings, which spell out the same moment in standard human-readable form. As a rough magnitude test, a present-day epoch in seconds has about 10 digits and one in milliseconds has about 13 — if your number is far off, you likely have the wrong unit. To reverse the check, drop the epoch number into a paired epoch-to-date converter and verify it returns your original date. Enter your date here, glance at the breakdown, and you will know the conversion is right before you copy it.

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.

Copy & paste this HTML
<iframe src="https://getthetoolbox.com/embed/date-to-epoch" title="Date to Epoch Converter — The Toolbox" width="100%" height="220" 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/converter-tools/date-to-epoch?utm_source=embed&utm_medium=widget" target="_blank" rel="noopener">Free Date to Epoch Converter</a> by The Toolbox</p>

About the Date to Epoch Converter

The Date to Epoch Converter turns a human-readable date and time into a Unix timestamp — the number of seconds (or smaller units) that have elapsed since the Unix epoch, midnight UTC on 1 January 1970. Enter a date and the tool instantly returns its epoch value in seconds, milliseconds, microseconds, and nanoseconds, alongside the matching ISO 8601, GMT, and local-time representations. It is built for the developers, database administrators, log analysts, and API integrators who run into raw timestamps every day and need a fast, reliable way to read or generate them.

Everything runs locally in your browser. No date you enter is uploaded to a server, there is no sign-up, and there is no daily limit — so you can paste timestamps from a private log or an internal system without anything leaving your device.

Three ways to enter a date

The converter offers three tabs for different workflows:

  • Date picker — choose a calendar date, a time down to the second, and one of 19 timezones (your local browser zone, UTC, plus 17 common IANA zones such as New York, London, Berlin, Mumbai, Singapore, and Tokyo). This is the safest way to convert a wall-clock time, because the tool resolves the exact instant for the zone you pick rather than assuming your own.
  • Free-form — paste a date in almost any common shape: ISO 8601 (2026-04-15T14:30:00Z), RFC 2822, or plain text like April 15 2026. Anything the browser's native date parser understands is accepted.
  • Bulk — paste one date per line to convert a whole batch at once. A live preview shows the first 50 rows, and a single click downloads a complete CSV containing every input, its validity flag, all four epoch units, the ISO 8601 and GMT strings, and an error column for lines that could not be parsed.

What you get back

Each conversion produces a full result card. The four epoch units cover every API and database convention you are likely to meet: most Unix utilities and date +%s use seconds, JavaScript's Date.now() and many JSON APIs use milliseconds, and high-resolution systems use microseconds or nanoseconds. Note that the smaller units are scaled up from millisecond precision (JavaScript dates do not expose sub-millisecond detail), so microseconds and nanoseconds end in trailing zeros rather than measured fractions. Below the epoch values, a UTC breakdown lists the year, month, day, weekday, hour, minute, and second so you can sanity-check the instant at a glance. Every value has its own copy button.

Why timezones and DST matter here

A Unix timestamp is an absolute point in time — it has no timezone of its own. The ambiguity lives in the input: "15 April 2026, 2:30 PM" means a different instant in London than in Tokyo. That is why the date-picker tab asks which zone your wall-clock time belongs to. The converter resolves the offset using the browser's Intl API and runs a second pass to handle daylight-saving transitions correctly, so a time that falls on a "spring forward" or "fall back" boundary still maps to the right epoch value. Free-form and bulk inputs follow standard parsing rules: a trailing Z or explicit offset is treated as UTC, while a bare date is interpreted in your local zone.

Common uses

Reach for the Date to Epoch Converter whenever a system speaks in timestamps. Typical jobs include setting an exp or iat claim when hand-crafting a JWT, building a since/until query parameter for a REST API, seeding a database column, scheduling a cron-style job, or correlating events across log files that record time as raw epoch numbers. Pick a tab, enter your date, and copy the unit your system expects.