Free Tool
Epoch & Unix Timestamp Converter
Convert Unix timestamps to human-readable dates or any date to an epoch timestamp. Supports seconds, milliseconds, microseconds and nanoseconds.
Timestamp to Human date
Supports seconds, milliseconds, microseconds and nanoseconds
Human date to timestamp
What is a Unix timestamp?
A Unix (epoch) timestamp is the number of seconds elapsed since January 1, 1970 00:00:00 UTC. It's a universal, timezone-independent way to represent a moment in time.
Seconds, milliseconds, and beyond
Different systems use different resolutions. JavaScript's Date.now() returns milliseconds. Databases and log systems often use microseconds or nanoseconds. This tool handles all four.
Common use cases
Unix timestamps appear in JWT expiry (exp), API responses, log files, and database records. Converting them to human-readable dates is a frequent debugging task.
How to use
- To convert a Unix timestamp to a date, paste the timestamp into the input field and select the unit (seconds, milliseconds, microseconds, or nanoseconds). The human-readable date appears instantly.
- To convert a date to a Unix timestamp, select a date and time using the date picker. The corresponding epoch values appear below.
- Use the "Now" button to capture the current timestamp.
Examples
- Simple: Paste
1700000000(seconds) → Thu Nov 14 2023 22:13:20 UTC. Paste1700000000000(milliseconds) → the same moment. The tool detects the unit automatically. - Developer workflow: A JWT payload contains
"exp": 1893456000. Paste that value to confirm it expires in 2030 — not next week. - Edge case:
1700000000(10 digits) is seconds;1700000000000(13 digits) is milliseconds. Pasting the wrong unit shifts the date by ~53 years. Always verify the unit your system uses.
Frequently Asked Questions
- What is a Unix timestamp?
- A Unix timestamp (also called epoch time or POSIX time) is the number of seconds that have elapsed since 00:00:00 UTC on January 1, 1970. It is a standard way to represent time in computing, databases, and APIs.
- How do I convert a Unix timestamp to a human-readable date?
- Enter your Unix timestamp in the "Timestamp to Human date" section and click Convert. The tool auto-detects whether your input is in seconds, milliseconds, microseconds, or nanoseconds and displays the result in GMT and your local timezone.
- How do I convert a date to a Unix timestamp?
- In the "Human date to timestamp" section, enter the year, month, day, hours, minutes, and seconds. Select AM/PM and timezone, then click the convert button to get the epoch in seconds and milliseconds.
- What is the current Unix timestamp?
- The current Unix timestamp is shown in real time on the Epoch Converter page at skybin.io/free-tools/epoch. It updates every second.