Unix Timestamp Converter — Epoch to Human Date & Back
Instantly convert Unix epoch timestamps to human-readable dates and times, or turn any date back into a Unix timestamp. This tool supports both second-precision and millisecond-precision timestamps — essential for debugging APIs, reading log files, and working with database records.
Why use this Timestamp Converter?
- Converts Unix timestamps (seconds or milliseconds) to readable UTC and local time
- Converts any date and time back to a Unix epoch timestamp
- Shows current timestamp in real time for quick copy-paste into code
- Free, instant, runs entirely in the browser — no data sent anywhere
How to use the Timestamp Converter
- Paste your timestamp: Enter a Unix epoch timestamp (e.g. 1717612800 or 1717612800000) into the input field.
- Get the human date: The tool instantly shows the equivalent date and time in UTC and your local timezone.
- Or convert a date to epoch: Switch to date-to-timestamp mode, enter a date and time, and get the corresponding Unix timestamp.
- Copy the result: Click to copy the output for use in your code, logs, or database queries.
Frequently Asked Questions
What is a Unix timestamp?
A Unix timestamp (also called epoch time) is the number of seconds that have elapsed since January 1, 1970 00:00:00 UTC. It's a standard way to represent points in time in programming, databases, and APIs because it's timezone-independent and easy to compare or do math with.
How do I know if my timestamp is in seconds or milliseconds?
Timestamps in seconds are typically 10 digits long (e.g. 1717612800). Millisecond timestamps are 13 digits (e.g. 1717612800000). JavaScript's Date.now() and many APIs return milliseconds, while Unix system calls and most databases store seconds.
How do I get the current Unix timestamp in JavaScript?
Use Math.floor(Date.now() / 1000) for seconds, or Date.now() for milliseconds. You can also use new Date().getTime() which returns milliseconds since epoch.
Why does my timestamp convert to a date in 1970?
If your result shows a date near January 1, 1970, your value is likely in milliseconds but being interpreted as seconds — or you have an accidentally small number. Try multiplying by 1000 if you're passing the value to a JavaScript Date constructor.
Can I convert a specific timezone to a Unix timestamp?
Yes. Enter the date and time in your desired timezone and the tool converts it to the corresponding UTC-based Unix epoch value, which is always timezone-agnostic.