Date to Unix Timestamp Converter

Convert any date and time to a Unix timestamp (epoch time) instantly. Supports seconds and milliseconds, all IANA timezones with automatic DST adjustment, and multiple output formats. Free, private, and runs entirely in your browser.

Current Unix epoch time
—
—
—
—

Convert Date to Timestamp

Unix timestamp
—

What is a Unix timestamp?

A Unix timestamp (also called epoch time, POSIX time, or Unix time) is the number of seconds that have elapsed since January 1, 1970 at 00:00:00 UTC, not counting leap seconds. It's a universal, timezone-independent way to represent a specific moment in time, which is why it's used everywhere in computing.

You'll find Unix timestamps in API responses, database columns, log files, JWT iat and exp fields, and system configuration files. This tool converts a human-readable date and time into the exact Unix timestamp your system needs — in both seconds and milliseconds.

Because timestamps are just numbers, they're perfect for storage and comparison. But for humans, they're useless until you convert them. That's exactly what this converter does — and it works both ways.

How to convert a date to a Unix timestamp

  1. Pick your date: Use the date picker to select any date — past, present, or future.
  2. Set the time: Enter the time in 24-hour format (e.g. 14:30 for 2:30 PM).
  3. Choose your timezone: Select the IANA timezone that your date and time refer to. Daylight saving time is applied automatically for the specific date you choose.
  4. Click Convert: The Unix timestamp appears immediately in both seconds and milliseconds, along with 10+ other output formats you can copy with a single click.
  5. Copy what you need: Click any format card to copy the value to your clipboard.

Want to go the other way? Click the swap button to switch to timestamp-to-date mode, enter a Unix timestamp, and get the human-readable date in any timezone.

Why use this date to timestamp converter?

Any date, past or future

Convert dates from 1970 to well beyond 2038. The converter uses JavaScript's 64-bit number type, so it handles the full range.

Every timezone covered

Supports all IANA timezones — every country, every major city, and every DST rule. Daylight saving time is handled automatically.

Seconds and milliseconds

Get the timestamp in both Unix seconds (10-digit) and Unix milliseconds (13-digit) so you can use whichever your system needs.

10+ output formats

ISO 8601, RFC 2822, Unix seconds, Unix milliseconds, UTC string, local readable string, day of week, week number, relative time, and more.

Bidirectional conversion

Convert date to timestamp, or timestamp to date. Click the swap button to switch modes instantly.

100% private

Everything runs in your browser. No dates or timestamps are sent to any server. Close the tab and it's gone.

Why IANA timezones matter for date-to-timestamp conversion

Most broken date converters have the same root cause: someone stored a fixed number of hours. "New York is 5 hours behind UTC" is true for part of the year — but false for the rest, because New York observes daylight saving time. During those weeks, any converter using a fixed offset is confidently wrong.

This tool solves that problem by naming the place instead of the difference. Timezones have canonical IANA names like America/New_York or Asia/Tokyo, and those names carry all the rules with them — including historical changes, current offsets, and future DST transitions. When you pick a date that falls during DST, the converter applies the correct offset for that specific date.

Approach Handles DST? Survives rule changes? Works for all dates?
Fixed offset (e.g. "UTC+5:30") No — breaks twice a year No — needs manual updates No
IANA timezone (e.g. Asia/Kolkata) Yes — automatic Yes — browser updates Yes — every date
This converter Yes — automatic Yes — browser updates Yes — every date

If you're building your own time-related features, the practical takeaway is: never store or calculate offsets yourself. Let the browser compute the moment for a named zone. This is built into every modern browser, it's free, and it's the single decision that separates a converter that works from one that will embarrass you in March.

Who uses a date to Unix timestamp converter?

Developers and DevOps engineers

  • Generate Unix timestamps for API payloads, database inserts, and JWT tokens
  • Set exp and iat claims with precise expiration times
  • Create test fixtures with known timestamps for reproducible tests
  • Calculate cron job schedules and audit log timestamps

Data analysts and scientists

  • Convert dates to epoch for time-series analysis and model training
  • Normalize timestamps across different data sources into a common format
  • Prepare data for tools that expect Unix timestamps as input

Students and researchers

  • Convert historical dates to epoch for computational analysis
  • Practice with real-world time data for programming assignments
  • Understand how timestamps work across different timezones

Anyone working with APIs or webhooks

  • Generate timestamps for scheduled tasks and reminders
  • Set expiration times for links, tokens, and sessions
  • Verify webhook delivery timestamps and event ordering

Common date to timestamp conversions

Here's a quick reference for some frequently needed conversions. Note that the exact timestamp depends on the timezone — these are for UTC.

Date (UTC) Unix timestamp (seconds) Unix timestamp (milliseconds)
Jan 1, 1970 (epoch)00
Jan 1, 2000 (Y2K)946684800946684800000
Jan 1, 202417040672001704067200000
Jan 1, 202517356896001735689600000
Dec 25, 202517666208001766620800000
Jan 19, 2038 (Y2038)21474836472147483647000
Jan 1, 210041024448004102444800000

For the most reliable results, always use the IANA timezone name rather than the abbreviation. This tool uses IANA names internally, which is why it handles DST correctly and never confuses "CST" in Chicago with "CST" in Shanghai.

Frequently asked questions

A Unix timestamp (also called epoch time or POSIX time) is the number of seconds that have elapsed since January 1, 1970 at 00:00:00 UTC, not counting leap seconds. It's a universal way to represent time across programming languages and systems.
Enter a date and time, select the timezone, and the converter calculates the exact Unix timestamp in both seconds and milliseconds. It uses the IANA timezone database built into your browser, so daylight saving time is handled automatically.
Yes. The converter applies the correct DST offset for the specific date you choose. If your date falls during daylight saving time, the offset is adjusted automatically.
Yes. Click the swap button to switch to timestamp-to-date mode. Enter a Unix timestamp and get the human-readable date in any timezone.
All IANA timezones are supported, covering every country and major city globally. The dropdown includes hundreds of timezones.
Yes. The converter outputs both Unix seconds (10-digit) and Unix milliseconds (13-digit) so you can use whichever your system needs.
Absolutely. Everything runs in your browser. No dates or timestamps are sent to any server. There is no server processing, no logging, and no data storage.
Yes. The tool is fully responsive and works on phones, tablets, and desktops. You can even add it to your home screen for quick access.
Yes. Once the page loads, the converter keeps working without an internet connection. The timezone calculations happen entirely on your device.