Unix timestamp converter
Turn a Unix timestamp (epoch) into a readable date and back. Seconds, milliseconds, microseconds or nanoseconds: the tool guesses from the size of the number. Choose any time zone (daylight saving included), see ISO 8601, with the current time ticking. It runs in your browser.
This tool needs JavaScript. If you still see this after a few seconds, JavaScript is switched off in your browser or the page did not load completely: turn JavaScript on or reload the page.
- Now (Unix seconds)
- Now (milliseconds)
- Now (ISO 8601)
With no zone in the text, the time is taken in the zone chosen above (or end it with Z or +07:00).
How to use it
- Paste a timestamp in the first box (like
1700000000). The result appears at once. Or press "Use the current time". - Choose the time zone. Your device's zone is the default; type a name like
Asia/Bangkokor press UTC. - Or enter a date and time in the second box (like
2026-10-10 12:00:00) to get the timestamp in seconds and milliseconds.
Frequently asked questions
What is a Unix timestamp?
The number of seconds since 00:00:00 UTC on 1 January 1970 (the epoch). It does not depend on a time zone, so computers keep time as one number that is easy to compare and calculate with. JavaScript and Java use milliseconds; Unix, Python and PHP often use seconds.
How does the tool know whether the number is seconds or milliseconds?
By its size. Up to 11 digits is seconds (until the year 5138), up to 14 is milliseconds, up to 17 is microseconds, and more than that is nanoseconds. If it guesses wrong, choose the unit yourself.
Why is the time different from what I expected, by hours?
A timestamp is in UTC. Shown in Thai time you add 7 hours (Asia/Bangkok is UTC+7, with no daylight saving). Choose the zone you want. When you type a date yourself with no zone, it is taken in the zone you chose.
Good to know
- Zones and daylight saving rules come from the browser (the IANA database). In an old browser the rules may not be the newest.
- A time that does not exist because the clocks skip an hour when daylight saving starts is reported. A time that happens twice (when the clocks go back) uses the first one.
- A number beyond the browser's date range (the year ±275760) is reported as out of range.
Your data stays on your device
Everything runs in your browser. What you type, paste or open is not sent to freesabai's servers or anyone else's, and is not kept in the browser: close the page and it is gone. The site only counts how many times this page was opened and how many times someone copied or saved a result (never what was pasted or the result, and you can switch the counting off in the footer; see the privacy policy).
Report a problem or suggest an idea
Found a bug, or want this tool to do more? Tell us on the feedback page. No sign-up.
Other developer tools
JSON and data
- JSON formatter and validatorFormat, minify and validate JSON, find the error, fold it into levels
- JSON to YAML converterTurn JSON into YAML, key order kept, nothing leaves your device
- YAML to JSON converterTurn YAML into JSON, and find the line where the YAML is wrong
- JSON to CSV converterTurn a JSON list into CSV for Excel, Thai text included
- CSV to JSON converterTurn CSV into JSON, any separator, quoted fields handled
- CSV viewerOpen a CSV file as a table, sort a column, search, no spreadsheet needed
- Text and JSON diff checkerSee what changed between two texts, side by side or unified, with word highlights
Encoding, hashes and tokens
- Base64 encode and decodeBase64 for text (Thai and UTF-8), URL-safe, and files to and from Base64
- Hash generator: MD5, SHA-256, HMACHash text or files with MD5, SHA-1, SHA-256, SHA-512 and HMAC, and verify a checksum
- JWT decoderRead the header and payload of a JWT, with times you can read (decode only, no signature check)
- URL encode and decodePercent-encode or decode a link, Thai in URLs included, and take a URL apart
- HTML entities encode and decodeTurn special characters into & < > " and back
Generators
Time, numbers and colour
- Unix timestamp converterConvert a timestamp (seconds or milliseconds) to a date and back, with time zones
- Cron expression explainerRead a cron expression in plain words and see its next 5 runs
- Number base converterConvert between binary, octal, decimal and hex, and do bitwise AND, OR, XOR and shifts
- Colour converter: HEX, RGB, HSLConvert a colour between HEX, RGB and HSL, or pick one by eye
- Colour contrast checker (WCAG)Check the contrast between text and background colours for WCAG AA and AAA
Text and code
- Regex testerTry a regular expression, see matches and groups, protected from regexes that never finish
- Markdown previewType Markdown and see it rendered at once, safely, with embedded scripts never run
- Character, word and line counterCount characters, words (Thai too), lines, sentences, paragraphs and reading time