Unix Timestamp Converter
Convert between Unix timestamps and human-readable dates.
# Timestamp to Date
📅 Date to Timestamp
How to use this tool
Read the live current timestamp
The live clock at the top of the tool shows the current Unix time in seconds, updating every second. Use this when you need to hard-code "now" into a test payload, database seed, or log entry.
Convert a timestamp to a date
Paste an epoch integer, then choose whether the value is in seconds or milliseconds. The tool shows the converted date in UTC, your local timezone, and ISO 8601.
Convert a date to a timestamp
Pick a date and time in your local timezone. The tool returns epoch seconds and milliseconds for that local instant. The same clock reading in a different timezone represents a different instant, so the reverse result depends on the selected local date and timezone.
Copy the value you need
Copy the seconds value for classic Unix time and Linux system calls. Copy the milliseconds value for JavaScript's Date.now(), most modern APIs, or any system that expects a JS-style epoch. Use the Cron Generator for standard five-field cron expressions.
About this tool
The Unix Timestamp Converter turns epoch integers into human-readable dates and vice versa. Paste any timestamp in seconds or milliseconds and see it formatted in UTC, your local timezone, and ISO 8601, or enter a date and get the epoch value back. The live clock at the top of the tool shows the current Unix time updating every second, useful when you need to hard-code "now" into a test payload or database seed.
Use it when you're debugging log files that only store epoch time, translating between API responses that use different formats (seconds vs. milliseconds), or confirming that a scheduled job will fire at the moment you expect. Timezone offsets and DST transitions are handled by the browser's native Date implementation across its supported date range.
Formula
Unix time counts from 1970-01-01 00:00:00 UTC. Classic timestamps use seconds, while JavaScript timestamps usually use milliseconds. Multiply seconds by 1,000 before passing them to new Date(), or pass millisecond values directly. Negative values represent dates before the Unix epoch.
When to use it
Daily tasks: reading timestamps out of logs, parsing API responses, setting scheduled job expressions, or sanity-checking that a token's expiry is what you think it is. Pair with the JSON Formatter when the timestamp is buried in a JSON payload, and the Encoding Converter when the payload itself is Base64-encoded.
Popular timestamp scenarios
Pre-explained timestamp concepts covering the most common questions about Unix time.
Frequently asked questions
What is the current Unix timestamp?
How do I convert a Unix timestamp to a date?
Is a Unix timestamp in seconds or milliseconds?
What is the year 2038 problem?
How do I get a Unix timestamp in JavaScript?
What's the difference between ISO 8601 and Unix timestamp?
Related tools
Text Encoding Converter
Convert between Text, Base64, Binary, Hexadecimal, and Decimal formats.
Use tool ➜JSON Formatter
Validate, format, and minify JSON data with readable output and error detection.
Use tool ➜Password Generator
Generate secure, random passwords locally in your browser.
Use tool ➜Color Picker
Pick colors and convert between HEX, RGB, HSL, CMYK, and HSV formats.
Use tool ➜Use this tool on your own site
Drop the Unix Timestamp Converter into your blog, docs, or CMS with one iframe snippet. Free, no signup. See all embeddable tools
