Unix Timestamp Converter - Free Online Tool
Convert a Unix timestamp in three steps
From an epoch number in a log to a date you can read, or back again. No sign-up and nothing to install.
- STEP 01
Paste the number
Paste a timestamp from a log, an API response or a database row.
Any of four units - STEP 02
Convert
Tap Convert or press Enter. The unit is worked out from the number's size.
Or pick a date instead - STEP 03
Copy the format you need
Copy seconds, milliseconds, UTC, local, IST, ISO 8601 or relative time.
One click per value
How to use this timestamp converter
Two converters side by side, plus a live clock that shows the current Unix time every second.
- 1
Timestamp to date
Paste the number and tap Convert. The tag above the result tells you which unit it was read as.
- 2
Date to timestamp
Pick a date and time, then choose whether it is local time, UTC or IST before you convert.
- 3
Use Now
Fills either side with the current moment, which is handy for test data and quick checks.
- 4
Copy a value
Every row has its own copy button. The phone bar copies the live timestamp in one tap.
Habits that keep timestamps correct
Most time bugs come from one of four mix-ups. Each has a simple rule.
Know the unit
Seconds and milliseconds differ by a factor of 1,000, so a wrong guess moves the date by decades.
- Seconds: 10 digits today
- Milliseconds: 13 digits
- Name the unit in field names
Store UTC, show local
A Unix timestamp has no time zone. The zone only matters when you turn it into a wall-clock date.
- Keep epoch or UTC in storage
- Convert at display time
- Label the zone on screen
ISO 8601 for people
When a human or another system reads the value, an ISO 8601 string says the zone out loud.
- 2026-11-04T10:30:00Z
- Sorts as text
- No unit guessing
Use 64-bit storage
A signed 32-bit seconds counter runs out on 19 January 2038 at 03:14:07 UTC.
- BIGINT, not INT
- Check old C code
- Test dates after 2038
The four timestamp units this tool reads
Different languages and databases count from the same epoch in different units. The number's size tells them apart.
Seconds
The classic Unix time from POSIX. Python's time.time() returns seconds as a decimal number.
- Unix and POSIX
- Most REST APIs
- JWT exp and iat claims
Milliseconds
JavaScript's Date.now() returns milliseconds. Java's System.currentTimeMillis() does too.
- JavaScript and Node.js
- Java
- Many JSON APIs
Microseconds
PostgreSQL stores timestamps to the microsecond, so raw exports often use this unit.
- PostgreSQL
- Some Python libraries
- Tracing tools
Nanoseconds
Go's UnixNano() returns nanoseconds since the epoch, as do several tracing formats.
- Go
- Tracing and metrics
- High-precision logs
Where Unix timestamps turn up
The same number, read by very different people for very different reasons.
Backend developers
API payloads, cache expiry and job schedules are often stored as epoch values.
Support and QA
Matching a user's report to a log line means turning epoch values into local time.
Data and analytics
Exports from databases and event pipelines often carry raw epoch columns.
DevOps and SRE
Alerts, metrics and traces each use their own unit and need lining up on one timeline.
How Unix time actually works
The definition comes from the POSIX standard. These three facts explain most surprises.
The definition
What POSIX says "seconds since the Epoch" means.
- The Epoch is 1 January 1970, 00:00:00 UTC
- Every day counts as exactly 86,400 seconds
- Leap seconds are not counted
- Dates before 1970 are negative numbers
- The number has no time zone
Digits by unit
How many digits a timestamp from today has in each unit.
Common mistakes
These give you a date that looks right but is not.
- Reading milliseconds as seconds
- Treating local time as UTC
- Storing seconds in a 32-bit integer
- Comparing values in different units
- Dropping the zone from a date string
Keeping time consistent across a project
A converter fixes one value. These habits stop the same bug coming back.
- 1
Pick one unit per system
Choose seconds or milliseconds for each API and database, and write it into the field name, like created_at_ms.
- 2
Keep everything in UTC
Store and compare in UTC. Convert to a person's time zone only when you show the value.
- 3
Log both forms
Write the epoch number and its ISO 8601 string side by side, so anyone reading the log can check it.
- 4
Test the edges
Try a date before 1970, a date after 2038 and a value in each unit before you ship a parser.
This converter vs the command line vs writing code
Each is the right tool somewhere. Use this page when you want an answer without opening a terminal.
| Feature | CleverTools converter | date command | A line of code |
|---|---|---|---|
| Works on a phone | ✓ Yes | ✗ Needs a terminal | Needs an editor |
| Detects the unit | ✓ Four units | ✗ You divide first | ✗ You divide first |
| UTC, local and IST at once | ✓ Every result | One zone per run | One per call |
| Live current timestamp | ✓ Updates every second | ✓ date +%s | ✓ One call |
| Works in bulk | ✗ One value at a time | ✓ In scripts | ✓ Best choice |
| Data leaves your device | ✓ Never | ✓ Never | ✓ Never |
Checking a token's expiry? JWT exp and iat claims are Unix seconds: decode the token with the JWT Decoder and paste the number here.
Pro tips for working with epoch time
Small checks that save an hour of debugging.
Count the digits
10 digits is seconds, 13 is milliseconds. Anything else, check the source before you trust the date.
Ask which zone
When someone gives you a date, ask whether it is local time or UTC before converting it.
Seconds in JavaScript
Math.floor(Date.now() / 1000) gives Unix seconds from JavaScript's millisecond clock.
Before 1970 is negative
31 December 1969, 23:59:59 UTC is -1. Some old systems store only positive values.
Watch for 2038
Signed 32-bit seconds stop at 2,147,483,647, which is 19 January 2038, 03:14:07 UTC.
Prefer ISO 8601 in logs
A string like 2026-11-04T10:30:00Z is readable, sortable and carries its zone.
Leap seconds are skipped
Unix time treats every day as 86,400 seconds, so it never shows a leap second.
Check webhook clocks
If an event looks hours off, compare the sender's zone with yours before blaming the data.
A column called expires_at could hold seconds or milliseconds. Call it expires_at_s or expires_at_ms and nobody has to guess, including you in six months.
32-bit or 64-bit? Why the size of the counter matters
Unix time is just a count of seconds, and every counter has a largest value. Where you store it decides when it runs out.
64-bit counter
A signed 64-bit count of seconds lasts far beyond any calendar date you will store. JavaScript dates use a 64-bit number too, with a range of about 270,000 years either side of 1970.
Use for new code, databases and file formats
32-bit counter
A signed 32-bit integer tops out at 2,147,483,647, which is 19 January 2038 at 03:14:07 UTC. One second later it wraps to a negative number, a date in 1901.
Found in old C code, embedded devices and INT columns
Who uses this timestamp converter
Six everyday jobs that start with an epoch number.
Debugging logs
Turn the epoch value on a log line into a time you can match against a bug report.
Reading API responses
Check created_at and expires_at fields from payment, cloud and chat APIs.
Writing test data
Pick a date, copy its timestamp and drop it straight into a fixture or seed file.
Querying by time
Get the start and end of a range as epoch values for a database or log search.
Customer support
See in IST or local time when a customer's order, login or payment really happened.
Learning
See how one moment looks in seconds, milliseconds, UTC and ISO 8601 side by side.
Scheduling a job? Build the expression with the Cron Expression Generator.
Frequently asked questions
Quick answers about Unix time, units and time zones.
What is a Unix timestamp?
Does it handle milliseconds?
Is this free?
What is the current timestamp?
What people say
Reviews from people who used this tool.
Loading reviews…
Popular presets
Jump to a version of this tool already set up for a specific need.
- PresetEpoch Converter: Unix Timestamp to DateConvert epoch time to a date in IST, UTC or your time zone, and a date back to epoch.Open preset
- PresetTimestamp to Date ConverterConvert any Unix timestamp to a human-readable date in IST, UTC, or local time.Open preset
- PresetMilliseconds to Date ConverterConvert millisecond Unix timestamps (JavaScript Date.now()) to readable dates.Open preset
More free developer tools
Free, with no sign-up, just like this one.
- Free toolBase64 Encoder / DecoderEncode text to Base64 or decode Base64 strings instantly in your browserTry it now
- Free toolJWT DecoderDecode and inspect JSON Web Tokens - view header, payload, expiry, and claims instantlyTry it now
- Free toolFavicon GeneratorTurn any image into the full favicon set - six standard sizes plus the HTML meta tags ready to paste, generated locally in your browser.Try it now
- Free toolHash GeneratorGenerate MD5, SHA-1, SHA-256, SHA-512 hashes from text or filesTry it now
- Free toolRegex TesterTest regular expressions with live matching, highlighting, and group extractionTry it now
- Free toolCron Expression GeneratorBuild, preview, and copy cron expressions visually with presets and next run time previewTry it now