Unix Timestamp Converter
Convert Unix timestamps to readable dates and back, with seconds or milliseconds and UTC reference. Free private timestamp converter in your browser.
How to Use
- For timestamp to date: paste the number and check Milliseconds if needed.
- Click Timestamp -> Date to see local and optional UTC breakdown.
- For date to timestamp: set the datetime picker value.
- Click Date -> Timestamp to generate seconds or milliseconds.
- Use Use current time to snapshot now for log correlation.
- Copy results into tickets, queries, or code comments.
Input Field Guide
- Unix timestamp
- Integer seconds or milliseconds since 1 Jan 1970 UTC. Toggle milliseconds for 13-digit JS values.
- Input is milliseconds
- Check when the source value has 13 digits typical of JavaScript Date.now().
- Human date
- Local date-time for reverse conversion to epoch.
- Show UTC reference
- When checked, displays coordinated universal time alongside local interpretation.
Understanding Your Results
Forward conversion shows local date-time plus UTC when enabled, with seconds and milliseconds echoed for verification. Reverse conversion outputs integer epoch in the selected precision. Detail chips clarify which unit mode was active to prevent order-of-magnitude mistakes.
Features
- Bidirectional seconds and milliseconds conversion
- UTC reference toggle
- Use current time shortcut
- Local and UTC display
- Copy-friendly output
- No server round trip
Formula & Calculation Logic
date = new Date(ms) where ms = seconds*1000 or raw milliseconds; reverse: floor(ms/1000) or ms from UTC instant of local picker interpretation.
Real-World Use Cases
- Log line timestamp decoding
- API payload debugging
- Database epoch column verification
- JWT exp and iat inspection
- Cross-team incident timeline alignment
Practical Examples
1700000000 with ms off -> 14 Nov 2023 in local time with UTC reference.
1700000000000 with ms on -> same instant, avoiding 1000* error.
Benefits
- Prevents seconds vs milliseconds mix-ups
- UTC toggle aids global teams
- Private for security log work
- Faster than shell date commands on locked-down PCs
Tips & Best Practices
- Count digits: 10 ≈ seconds, 13 ≈ milliseconds.
- Enable UTC when comparing with server logs stamped Zulu.
- Use epoch-converter for strict seconds-only labeling.
Common Mistakes to Avoid
- Forgetting milliseconds toggle on JavaScript timestamps.
- Treating local picker output as UTC without checking the UTC line.
- Multiplying already-millisecond values again.
Frequently Asked Questions
What is a Unix timestamp?
Seconds (or milliseconds) since 1 January 1970 00:00:00 UTC, omitting leap seconds in common software practice.
When should I enable milliseconds?
For 13-digit values from JavaScript, MongoDB BSON dates, or other ms-precision sources.
Does Show UTC change the conversion?
It adds a UTC display line; local interpretation still follows your browser zone.
How is this different from epoch-converter?
Unix timestamp adds millisecond toggle, UTC display, and current-time shortcut; epoch-converter focuses on seconds pairs.
Can I convert negative timestamps?
Yes for pre-1970 instants within JavaScript Date range limits.
What does Use current time do?
Fills fields with now for quick bidirectional reference.
Are leap seconds included?
Standard JS Date uses POSIX-style ignoring leap seconds, matching most logs.
Is my timestamp uploaded?
No. Conversion is entirely local.