Unix Timestamp Converter
Convert Unix timestamps to readable dates instantly. Batch mode handles multiple timestamps at once. Auto-detects seconds, milliseconds and microseconds. ISO 8601, RFC 2822, week number, relative time. Live epoch clock and code snippets for 8 languages.
How to get the current Unix timestamp and convert it in common languages. Click any snippet to copy.
Paste multiple timestamps — one per line. Auto-detects seconds, milliseconds or microseconds.
Every Server Log, Database Record and API Response Uses This
Unix timestamps appear everywhere — database created_at columns, API response fields like "expires_at": 1800000000, server log entries, JWT token expiry times and file system metadata. They are just the number of seconds since midnight on 1 January 1970 UTC. Paste any timestamp above to see the full date, ISO 8601, RFC 2822 and relative time instantly.
Batch Conversion for Log Analysis
When debugging incidents, you often have a column of timestamps from a database query or log file that you need to read quickly. The Batch Converter panel accepts as many timestamps as you need — one per line — and converts them all simultaneously. It auto-detects seconds (10 digits), milliseconds (13 digits) and microseconds (16 digits) and labels each result accordingly.
Seconds vs Milliseconds vs Microseconds
A 10-digit timestamp is seconds. A 13-digit timestamp is milliseconds (divide by 1,000). A 16-digit timestamp is microseconds (divide by 1,000,000). JavaScript's Date.now() returns milliseconds. Python's time.time() returns seconds as a float. The converters on this page auto-detect the format so you never need to think about it.
RFC 2822 Format
RFC 2822 is the timestamp format used in email headers — it looks like Thu, 01 Jan 2026 00:00:00 +0000. It is also used in HTTP headers, RSS/Atom feeds, and some API responses. The timestamp→date converter shows both ISO 8601 and RFC 2822 so you have both formats ready to copy.
Code Snippets
The Code Snippets panel shows how to get the current timestamp and convert it in JavaScript, Python, PHP, Go, MySQL, PostgreSQL, Shell and C#. The snippets update with the live current timestamp so you can paste them directly into your project.