Enter a date, get the Unix timestamp in seconds and milliseconds. Useful when setting expiration times, building API requests, or configuring cron schedules.
Date in, timestamp out. Instant and free.
Convert Now →| Date (UTC) | Seconds | Milliseconds |
|---|---|---|
| Jan 1, 2024 00:00:00 | 1704067200 | 1704067200000 |
| Jul 1, 2024 00:00:00 | 1719792000 | 1719792000000 |
| Jan 1, 2025 00:00:00 | 1735689600 | 1735689600000 |
| Jan 1, 2026 00:00:00 | 1767225600 | 1767225600000 |
| Jan 1, 2030 00:00:00 | 1893456000 | 1893456000000 |
When creating a JWT, the exp claim requires a Unix timestamp. "Expire in 24 hours" means: current timestamp + 86400. "Expire on April 10, 2026" means you need the epoch value for that date. Convert it, paste it into your token builder.
Many APIs accept date filters as timestamps: /events?after=1712345678&before=1712432078. Converting your target dates to timestamps is the first step in building these queries.
Querying records between two dates in a database that stores timestamps: SELECT * FROM orders WHERE created_at BETWEEN 1704067200 AND 1706745600. Convert your date range to timestamps first.
Some schedulers accept "run at timestamp X" rather than cron expressions. Convert your target date to a timestamp for one-time scheduled tasks. For recurring schedules, check the Cron Generator.
Math.floor(new Date('2026-04-06').getTime() / 1000)int(datetime(2026,4,6).timestamp())date -d "2026-04-06" +%sstrtotime('2026-04-06')SELECT UNIX_TIMESTAMP('2026-04-06')Unix timestamps are always UTC. When you enter "April 6, 2026 at 2:30 PM" the question is: 2:30 PM in which timezone? If you mean UTC, the timestamp is one value. If you mean EST (UTC-5), the timestamp is 5 hours later in UTC terms.
Our tool uses your browser's local timezone by default. If you need UTC specifically, enter the date as UTC or adjust accordingly.
Related: JWT Decoder to inspect token timestamps, Base64 Decoder for encoded API data.