Unix Timestamp Converter
Convert unix timestamp converter using the available input and format options.
About Unix Timestamp Converter
Server logs, APIs, databases and JWT tokens store time as Unix timestamps, the number of seconds since 1 January 1970 UTC. Developers and support staff use this to read a timestamp as a date, or to create a timestamp for testing or a database query.
How it works
Unix to Date multiplies your number by 1,000 and shows the result as an ISO 8601 string in UTC, ending in Z. Date to Unix parses your text with the browser's Date parser and returns whole seconds, rounded down. A date-only string like 2024-01-01 is read as UTC midnight. A date and time without a zone, like 2024-01-01T09:00, is read in your local time zone.
How to use Unix Timestamp Converter
- Complete the available fields: Unix seconds or ISO date, Direction. Use the field labels and examples shown in the workspace.
- Select “Run tool” and check the result before copying or downloading it.
Worked example
Enter 1700000000 with Unix to Date. The tool shows 2023-11-14T22:13:20.000Z. Enter 2024-01-01T00:00:00Z with Date to Unix and it shows 1704067200. A timestamp of 0 converts to 1970-01-01T00:00:00.000Z, the start of the Unix epoch. A date-only input of 2024-01-01 also gives 1704067200, because it is read as UTC midnight.
Tips for a better result
- If a timestamp has 13 digits, it is in milliseconds. Divide by 1,000 before entering it.
- Add Z or an offset such as +04:00 to date input so the result does not depend on your computer's time zone.
- Use ISO format, year first. Other formats may parse differently between browsers.
Frequently asked questions
Why is the output in UTC?
The tool uses toISOString, which always returns UTC. Add your own offset to get local time.
What if I paste milliseconds?
The tool treats input as seconds, so a millisecond value gives a date tens of thousands of years ahead. Divide by 1,000 first.
Why did I get NaN?
The browser could not parse the date text. Use ISO format such as 2024-05-01T12:00:00Z.
What to check
Some measures vary by region or date and may not have a universal equivalent.
Read the Privacy Policy for information about local processing, connected services and advertising.