Tools
English

Neogie Epoch · Developers and SEO

Unix Timestamp Converter: Epoch to Date and Back

Short address neogie.com/epoch

Paste a Unix timestamp or a date: the conversion shows in UTC, local time and ISO 8601.

Now, in seconds
—
Now, in milliseconds
—

Timestamp to date

Date to timestamp

ISO 8601 format: 2023-11-14 22:13:20, 2023-11-14T22:13:20Z or 2023-11-14T23:13:20+01:00. With no offset given, the time zone chosen above applies.

Everything happens in your browser: nothing you type is sent.

What is a Unix timestamp?

A Unix timestamp (or epoch time) is the number of seconds elapsed since January 1, 1970 at 00:00:00 UTC. It is a single number, the same everywhere in the world, which makes it the simplest way to store and compare moments in databases, logs and APIs.

Depending on the language, the number counts seconds (10 digits today: PHP, Python, Unix) or milliseconds (13 digits: JavaScript, Java). In automatic mode, the tool treats a number of 12 digits or more as milliseconds; you can force the unit.

The time zone

A timestamp designates a precise moment and has no time zone. It is the display and the entry of a date that depend on one. Choose the time zone you want: the date shown, and a date typed without an offset, are then interpreted in that time zone, taking daylight saving time into account.

A date written with Z or with an offset (+01:00) is taken as is, whatever time zone is chosen.

Limits

The tool handles dates from the year -271821 to the year 275760, like JavaScript. Leap seconds are not counted, as in Unix time. Decimals in a timestamp in seconds are rounded to the millisecond.

Frequently asked questions

Why January 1, 1970?

It is the starting date chosen by the designers of Unix, who needed an origin close to their own time. It is called the epoch.

What will happen in 2038?

Timestamps stored in signed 32 bits cannot go past January 19, 2038. 64-bit systems, like this tool, do not have that limit.

Are my dates sent anywhere?

No. Everything is computed in your browser. Only the chosen time zone is kept in the browser's memory, so it can be restored on your next visit.

Can a timestamp be negative?

Yes: a negative number designates a date before 1970. For example, -86400 is December 31, 1969.

Similar tools

Neogie SnippetSERP Snippet Preview ToolType a title and a description: the simulated result shows where they will be cut off. Neogie Base64Base64 Encoder and Decoder: Text, Files and JWTType on one side, the result appears on the other. Text, files and JWT tokens, with nothing uploaded. Neogie CRC32CRC-32 Calculator for Text and FilesThe checksum of a text as you type, or that of a file you want to compare. Neogie FileDiffCompare two files or folders: text and bytesDrop two files or two folders: differences appear at once, by line for text and by byte for everything else. Neogie BinaryBinary Translator: Text to Binary and BackType a message to see it in 0s and 1s, or paste binary to read it. Neogie CSVCSV to JSON and JSON to CSV converterPaste a CSV or a JSON: the conversion and a table preview appear right away. Neogie HexText to Hex and Hex to Text ConverterType text to see its bytes, or paste hexadecimal to get the text back. Neogie PunycodePunycode Converter for Internationalized Domain Names (IDN)Turn a domain name with accents or other scripts into its “xn--” form, and back. Neogie JWTJWT Decoder: read a token and verify its signaturePaste a JWT: its content appears, with the dates in plain language and the expiry status. Neogie Ascii85Ascii85, Z85 and Base85 Encoder and DecoderText or files to Base85 and back: five characters for every four bytes. Neogie Base32Base32 Encoder and DecoderText or files to Base32 and back, with the three most used alphabets. Neogie Base58Base58 and Base58Check Encoder and DecoderText or files to Base58 and back, with the Base58Check checksum if you want it. Neogie URLURL Encoder and Decoder (Percent-Encoding)Type on one side, the other fills in: addresses, parameters and form data, with every part spelled out. Neogie EntitiesHTML Entity Encoder and DecoderShow code or special characters without breaking the page: the result follows your typing. Neogie CronCron Expression Explained: Plain English and Next RunsPaste a cron expression: it is explained in a sentence, with its next run times. Neogie CSSCSS Formatter, Checker and MinifierPaste your style sheet: it is tidied up or compacted, and errors are reported. Neogie HTMLHTML Formatter, Checker and MinifierPaste your code: it is indented or compacted instantly, and structural errors are reported. Neogie JSONJSON Formatter and Validator OnlinePaste your JSON: it is checked and tidied up instantly, with the line and column of every error. Neogie SQLSQL Formatter Online: Indent and MinifyPaste a one-line query: it comes out split into clauses, ready to review. Neogie XMLXML Formatter and Validator OnlinePaste your XML: it is checked and indented instantly, with the line and column of the first error. Neogie MetaMeta Tag and Open Graph GeneratorFill in the fields: the preview and the code to paste into your page update instantly. Neogie RobotsRobots.txt Generator and TesterBuild the rules for search engine crawlers, then check which addresses they can visit. Neogie SitemapXML Sitemap Generator from a URL ListPaste your page URLs: your XML sitemap is ready to download. Neogie UUIDUUID Generator: v4, v7, in bulkPick the version, the quantity and the format: the identifiers are generated in your browser. Neogie MarkdownMarkdown to HTML: preview and code to copyType or paste Markdown: the preview and the HTML update as you write. Neogie RegexRegex Tester Online: JavaScript Regular ExpressionsType a pattern and some text: matches and their groups are colored as you type.