Unix Timestamp
Unix timestamp (epoch time) is the number of seconds since January 1, 1970, 00:00:00 UTC — the universal time format used in databases, APIs, log files, and programming languages. Our converter translates between Unix timestamps and human-readable dates in any timezone, handles millisecond precision, and shows the current epoch time live.
Current Timestamp
Convert Date to Timestamp
About the Unix Timestamp Converter
Unix timestamp (epoch time) is the number of seconds since January 1, 1970, 00:00:00 UTC — the universal time format used in databases, APIs, log files, and programming languages. Our converter translates between Unix timestamps and human-readable dates in any timezone, handles millisecond precision, and shows the current epoch time live.
How to use it
- Enter a Unix timestamp (seconds or milliseconds) to convert to a readable date.
- Enter a date and time to convert to Unix timestamp.
- Select your local timezone or any IANA timezone for conversion.
- Copy the result in ISO 8601 format, RFC 2822, or raw timestamp.
Formula & methodology
Unix timestamp = (date − 1970-01-01 00:00:00 UTC) in seconds. Millisecond timestamp = seconds × 1000. JavaScript: Date.now() (ms), Math.floor(Date.now()/1000) (s). PHP: time(). Python: import time; time.time(). SQL: UNIX_TIMESTAMP() (MySQL), EXTRACT(EPOCH FROM NOW()) (PostgreSQL).
Common use cases
- Debugging API responses with timestamp fields
- Converting log file timestamps to local time
- Setting expiration times for JWT tokens, cookies, or cache entries
- Database: comparing timestamps across timezone-unaware systems
- Checking when a file was created from its filesystem timestamp
Frequently asked questions
Related tools
All Tools →Embed this tool on your site
Free for personal and commercial use. Just copy the snippet below.