Timestamp Converter
How Timestamp Conversion Works
Unix timestamps represent time as seconds (or milliseconds) since the Unix Epoch.
- 1
Parse the input
The input is parsed as either a Unix timestamp (auto-detecting seconds vs milliseconds) or a date string.
- 2
Convert to target format
The parsed time is converted to the desired output format: local time, UTC, ISO 8601, or relative time.
- 3
Display all formats
Multiple representations are shown simultaneously so you can copy the one you need.
FAQ
What is a Unix timestamp?
A Unix timestamp (also called Epoch time) is the number of seconds elapsed since January 1, 1970 (UTC). It is widely used in programming and databases.
What is the difference between seconds and milliseconds?
Unix timestamps can be expressed in seconds (10 digits) or milliseconds (13 digits). JavaScript Date.now() returns milliseconds. This tool auto-detects the unit based on the value magnitude.
What is ISO 8601?
ISO 8601 is an international standard for representing dates and times. The format is YYYY-MM-DDTHH:mm:ss.sssZ, where Z indicates UTC. It is the most portable date format across systems.
How does relative time work?
Relative time expresses a timestamp as a human-readable duration like "3 hours ago" or "in 2 days", computed relative to the current time.
Related Tools
π
UUID Generator
Generate random UUIDs (v4) and timestamp-based UUIDs (v7) individually or in bulk. Supports uppercase and hyphen-free output.
πJSON Formatter & Validator
Format, minify, and validate JSON data with syntax highlighting.
πHash Generator
Generate MD5, SHA-1, SHA-256, SHA-512 hashes from text.