Unix Timestamp Converter
Turn Unix timestamps into readable dates in any time zone — and dates back into epoch seconds or milliseconds — with automatic unit detection, every common format and a converter for timestamps inside logs.
At a glance
- Shows the current Unix time live, in seconds and milliseconds, ready to copy.
- Detects the unit of a timestamp — seconds, milliseconds, microseconds or nanoseconds — and keeps nanosecond precision.
- Converts to ISO 8601, RFC 2822/HTTP date, a readable date and “3 days ago”, in any IANA time zone, with day of the year and ISO week.
- Turns a date and time in any zone back into epoch time, handling daylight-saving changes correctly.
- Also reads and writes Excel serial dates, Windows FILETIME/LDAP, WebKit/Chrome time, Apple Cocoa time and Julian days.
- Finds the 10- and 13-digit timestamps in pasted logs or JSON and adds the date next to each one.
Step by step
How to convert a Unix timestamp
- 1
Paste the timestamp
Enter it under Timestamp to date — seconds, milliseconds or more are detected automatically.
- 2
Choose a time zone
Pick your zone, UTC or any other, to see the local date and time.
- 3
Copy the format you need
Copy ISO 8601, the readable date or any other format from the list.
Features
Everything you need, nothing you don’t
Any unit
Paste a 10, 13, 16 or 19-digit timestamp — the unit is detected for you.
Every time zone
All IANA zones from your browser, with correct offsets for the date, including DST.
Both directions
Epoch to date, and date to epoch — or paste any date text to inspect it.
Developer formats
Excel, LDAP/Active Directory, Chrome history, Apple and Julian timestamps in one place.
Log decoder
Make server logs readable by annotating or replacing every Unix timestamp.
Private
Everything runs in your browser; nothing you paste is sent anywhere.
Get the current Unix time in code
| Language | Seconds | Milliseconds |
|---|---|---|
| JavaScript | Math.floor(Date.now() / 1000) | Date.now() |
| Python | int(time.time()) | time.time_ns() // 1_000_000 |
| Java | Instant.now().getEpochSecond() | System.currentTimeMillis() |
| Go | time.Now().Unix() | time.Now().UnixMilli() |
| PHP | time() | (int) (microtime(true) * 1000) |
| C# | DateTimeOffset.UtcNow.ToUnixTimeSeconds() | DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() |
| MySQL | UNIX_TIMESTAMP() | ROUND(UNIX_TIMESTAMP(NOW(3)) * 1000) |
| PostgreSQL | extract(epoch from now())::bigint | (extract(epoch from now()) * 1000)::bigint |
| Bash | date +%s | date +%s%3N |
Notable Unix times
| Timestamp | Date (UTC) | Why it matters |
|---|---|---|
| 0 | 1 January 1970, 00:00:00 | The Unix epoch |
| 1,000,000,000 | 9 September 2001, 01:46:40 | The billionth second |
| 1,234,567,890 | 13 February 2009, 23:31:30 | A famous “counting” moment |
| 2,000,000,000 | 18 May 2033, 03:33:20 | Two billion seconds |
| 2,147,483,647 | 19 January 2038, 03:14:07 | Largest signed 32-bit time — the Year 2038 problem |
FAQ
Frequently asked questions
What is Unix time (epoch time)?
Is my timestamp in seconds or milliseconds?
What is the Year 2038 problem?
How do I convert an Excel date to a timestamp?
Does Unix time change with daylight saving?
Keep going
Related tools
Unit Converter
Convert length, weight, area, volume, temperature, speed, data and 8 more quantities — including guntha, bigha, tola and lakh. Type “5 ft 10 in to cm”.
Cron Expression Generator
Build and explain cron expressions in plain English with next run times. Supports Linux crontab, Quartz, Spring and AWS EventBridge, and converts between them.
JSON Formatter & Validator
Format, validate, minify and repair JSON online. Get the exact line and column of every error, a collapsible tree view and sorted keys — private, in-browser.
UUID Generator
Generate UUIDs (GUIDs) online: random v4, sortable v7, v1, and name-based v5 and v3 — one or 10,000 at a time. Also decode and validate any UUID.
Image Compressor
Compress JPG, PNG, WebP and AVIF images online for free. Shrink photos by up to 90% or hit an exact KB target — right in your browser, with no upload.
Word Counter
Free online word counter: count words, characters, sentences and paragraphs as you type, with reading time, keyword density, readability and limits.
Last updated Report a problem or suggest a feature