How to use the Unix Timestamp Converter
- Paste a timestamp to see the date in UTC and your local time.
- Or pick a date and time to get its timestamp.
- Copy the current timestamp from the top, or a ready-made Discord timestamp code from the table below.
What does this tool do?
A Unix timestamp counts seconds since 00:00:00 UTC on January 1, 1970 (the “epoch”). JavaScript and many APIs use milliseconds instead, so the converter detects the unit from the number's size.
Results are shown in UTC (ISO 8601), your local time zone and the HTTP date format, and as Discord <t:…> codes in all seven display styles.
Why use it?
- Read timestamps in logs and databases.
- Create timestamps for API requests.
- Seconds vs milliseconds detected for you.
Use cases
- Read created_at or exp values in logs, databases and JSON Web Tokens.
- Get the current epoch time for an API request or a cron job.
- Make a Discord timestamp that shows each reader the time in their own time zone.
Examples
1767225600 = 2026-01-01T00:00:00Z. 1767225600000 is the same moment in milliseconds.
Common mistakes
- Mixing seconds and milliseconds. 1700000000 is 14 November 2023; read as milliseconds it would be 20 January 1970. The converter detects the unit from the number of digits.
- Forgetting that a timestamp has no time zone. It's one moment in time; only how you display it (UTC or local) changes.
Privacy
Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.
Frequently asked questions
What is the year 2038 problem?
Systems that store timestamps as signed 32-bit integers overflow after 2147483647, which is 2038-01-19T03:14:07Z. Modern systems use 64-bit values, which last billions of years.
How do I make a Discord timestamp?
Enter the timestamp (or pick a date and copy its seconds value), then copy a code from the Discord timestamps table, such as <t:1767225600:F>. Discord shows it to every reader in their own time zone; :R shows a relative time like “in 3 days”.
Is a Unix timestamp in UTC?
Yes. It counts seconds since 1970-01-01T00:00:00Z regardless of where you are, which is why the same number shows different local times in different countries.
How do I get the current timestamp in code?
JavaScript: Math.floor(Date.now() / 1000). Python: int(time.time()). PHP: time(). Bash: date +%s. JavaScript's Date.now() alone returns milliseconds.
Last reviewed by the M2Toolkit team.