Unix Timestamp Converter
Convert epoch timestamps to human-readable dates and back. Seconds, milliseconds and microseconds are detected automatically.
Current Unix timestamp
–
Timestamp → date
Date → timestamp
Key facts
- Privacy
- Runs in your browser: your files and text are never uploaded
- Last updated
How to convert a Unix timestamp
Paste a timestamp to see it as a date in your time zone, in UTC and in ISO 8601 format. To go the other way, pick a date and time and copy the timestamp in seconds or milliseconds. The live counter at the top shows the current Unix time.
Frequently asked questions
What is a Unix timestamp?
It is the number of seconds since 1 January 1970 at 00:00 UTC, ignoring leap seconds. Because it doesn’t depend on time zones, it is how most systems store moments in time.
Seconds or milliseconds?
Unix tools and most APIs use seconds (10 digits today). JavaScript and Java use milliseconds (13 digits). The converter detects the unit from the number’s size.
What is the year 2038 problem?
Systems that store timestamps as signed 32-bit numbers overflow on 19 January 2038. Modern systems use 64-bit values and aren’t affected.
How do I get the current Unix timestamp?
In JavaScript, Math.floor(Date.now() / 1000). In Python, int(time.time()). In a terminal on macOS or Linux, date +%s. The converter also shows the current timestamp live.
Does Unix time count leap seconds?
No. Unix time treats every day as exactly 86,400 seconds, so leap seconds aren’t counted. That keeps date arithmetic simple.
Sources
The rules and figures this tool uses come from:
Related tools
- JSON FormatterPretty-print, validate and minify JSON
- Binary ConverterBinary, decimal, hex and octal, two’s complement and text to binary
- Base64 Encode / DecodeText and files to and from Base64
- URL Encode / DecodePercent-encode text and inspect URLs
- Hash GeneratorMD5, SHA-1, SHA-256 and SHA-512 for text and files
- JWT DecoderInspect header, payload, expiry and signature
- Regex TesterTest patterns with live match highlights
- Bottleneck CalculatorCheck if your CPU or GPU holds back gaming performance