Unix Timestamp Converter
Convert a Unix timestamp (seconds or milliseconds) to a readable date, or convert a date to a timestamp. Auto-detects seconds vs milliseconds.
About this tool
Convert a Unix timestamp (seconds or milliseconds) to a readable date, or convert a date to a timestamp. Auto-detects seconds vs milliseconds.
Example
Input: 1718020800
Output: 2024-06-10T12:00:00Z
Privacy
This tool runs entirely in your browser. Your data is processed locally and never uploaded to a server.
How to use this tool
- Paste a Unix timestamp or a date into the input box.
- Choose whether you want to convert to a readable date or to a Unix timestamp.
- If you enter a timestamp, let the tool auto-detect whether it is in seconds or milliseconds.
- Review the converted result and use it in your code, logs, or tests.
Step by step, what happens
- The tool first inspects your input to see whether it looks like a Unix timestamp or a date string.
- If the value is a timestamp, it checks the length and format to decide whether it is seconds or milliseconds.
- It then converts the value into a standard readable date or into a Unix timestamp, depending on the direction you chose.
- Finally, it shows the result clearly so you can copy it and verify the time is what you expected.
Worked example
A common case is checking a log timestamp like 1700000000 and turning it into a readable date.
Input: 1700000000
- Paste 1700000000 into the converter.
- The tool recognizes it as a Unix timestamp in seconds, not milliseconds.
- It converts the value into a readable date in UTC.
Output: 2023-11-14 22:13:20 UTC
Tips and common mistakes
- If a timestamp looks far in the future or past, it may be in milliseconds when you expected seconds.
- Use UTC when comparing results from logs, APIs, or backend systems, since local time can make dates look different.
- If you paste a date, include the full time and timezone when possible to avoid ambiguous results.
- A 10-digit Unix value is usually seconds, while a 13-digit value is usually milliseconds.
Frequently asked questions
Seconds or milliseconds?
It auto-detects: more than 10 digits is treated as milliseconds, otherwise seconds.
What is the Unix epoch?
Midnight UTC on January 1, 1970. Timestamps count the time elapsed since then.
Can I convert a date to a timestamp?
Yes, paste a date string and it returns the timestamp.
More Developer Tools Tools
Explore related calculators in this category
Timestamp Generator
Generate the current Unix timestamp, milliseconds and ISO 8601 datetime instantly. Free online timestamp tool.
.htaccess Generator
Generate common .htaccess rules, force HTTPS, www redirect, and caching, with checkboxes.
API Key Generator
Generate random, secure API keys and tokens with an optional prefix. Cryptographically secure.
Apache Log Parser, Free Online Developer Tool
Parse Apache/NGINX combined access log lines into IP, time, request, status and size fields. Get instant results, the formula, and a clear example.
You Might Also Like
Popular tools from other categories
1031 Exchange Calculator - Free Online
Free Calculate tax deferral in a 1031 exchange. Step-by-step solutions and formulas included. Fast, accurate, and free, with formula and example.
4% Rule Calculator
Find the retirement nest egg you need using the 4% safe-withdrawal rule.
70% Rule Calculator
Calculate max offer using the 70% rule for flips.
A1C Calculator - Free Online
Free Convert between A1C percentage and estimated average glucose. Step-by-step solutions and formulas included. Simple, fast, and free.
Can't Find the Right Calculator?
Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.