About the Unix Timestamp Converter
Convert Unix epoch timestamps (seconds or milliseconds since 1 January 1970) into ISO 8601, RFC 2822, local date strings and relative time, or go the other way from a date/time picker to epoch values. A live clock shows the current timestamp updating every second.
How to use it
- 01Paste a timestamp into the epoch field, or click 'Now' to use the current time.
- 02Choose seconds or milliseconds, or leave it on auto-detect based on magnitude.
- 03Read the ISO 8601, RFC 2822, local string and relative-time outputs.
- 04Alternatively, pick a date and time below to get its epoch seconds and milliseconds.
Features
- Auto-detects whether an epoch value is in seconds or milliseconds based on its magnitude, with a manual override
- Converts to ISO 8601 UTC, RFC 2822, local date string and human relative time simultaneously
- One-click 'Now' button and a continuously updating current-timestamp readout
- Reverse conversion from a date/time picker to both epoch seconds and milliseconds
Practical examples
API debugging
Paste a timestamp from a JSON API response to see exactly what date and time it represents.
Log analysis
Convert a millisecond timestamp from server logs into your local time for easier reading.
Scheduling
Pick a future date and time to get the epoch value needed for a cron job or API call.
Limitations
- Auto-detection uses a magnitude heuristic (values above ~20 billion are treated as milliseconds); extremely old or far-future timestamps may be misclassified and should use the manual override.
- The 'Now' button and live clock only run after the page loads in your browser, since server-rendered pages can't know the client's exact time.
Privacy
All conversions happen locally using your browser's JavaScript Date object. No timestamps are transmitted anywhere.
Read the full privacy policy for how the site as a whole handles data.
Frequently asked questions
How do I know if my timestamp is in seconds or milliseconds?
Leave the unit selector on 'Auto-detect'; timestamps above roughly 20 billion are assumed to be milliseconds, since that's out of range for seconds until the year 2603.
What is the relative time format?
It shows a human phrase like '3 days ago' or 'in 2 hours', calculated against the live current time in your browser.
Can I convert a future date to a timestamp?
Yes, use the date/time picker at the bottom to get epoch seconds and milliseconds for any past or future date.