Timestamp Converter
Convert Human Readable Dates to Unix Timestamps instantly.
From a calendar date to a Unix timestamp
APIs, databases and log files often store time as the number of seconds since 1 January 1970 UTC. When you need to put a specific date into a query, a config file or a test fixture, you have to turn it into that number. This tool does that direction of the conversion: you enter a human-readable date, and it returns the timestamp in both seconds and milliseconds.
How to convert a date
- Type a date into the Input Data box, for example 2023-12-31 23:59:00. Sample fills in 2025-01-01 12:00:00 for you.
- Click Process Now.
- The results panel shows Seconds and Milliseconds as large, easily selectable numbers. A line above them says how the date was parsed, written as a UTC string.
- Use Copy for the text or Download to save result.txt. Clear resets the box.
Which formats work, and which time zone applies
The date is read by your browser's built-in date parser, so anything it understands is accepted: ISO strings like 2025-03-15T08:30:00Z, and forms such as December 31, 2023 23:59:00 or 2023/12/31. Behaviour differs between browsers for unusual layouts, so the ISO style is the most dependable choice.
Time zone matters. A value that includes Z or an offset like +05:30 is exact. A date and time with no zone, such as the 2025-01-01 12:00:00 sample, is treated as local time on your device, so the timestamp will differ depending on where you are. Look at the "Parsed as" UTC line to see what was actually used. A date-only ISO string like 2025-01-01 is normally read as midnight UTC.
Everyday uses
- Setting an expiry or start time in a JWT, cache header or scheduled job.
- Building a range filter for a database or analytics query.
- Producing a fixed timestamp for a unit test.
- Checking how a log entry's date translates to the epoch value in your data.
Details worth knowing
The seconds figure is rounded down from the milliseconds, so fractional parts are dropped. Dates before 1970 return negative numbers, which is correct for Unix time. Leap seconds are not counted, as in standard Unix time.
If you see a message saying the format is invalid, your browser could not read the date; switch to the ISO layout, and note that a blank box gives a separate prompt to enter a date. To go the other way, from a number back to a date, the companion Unix Time Converter handles that.
Related Tools
Related Tools