JSON Formatter
Pretty-print, minify and validate JSON with clear error positions, a collapsible tree view and a local history of your last 5 documents.
'Convert Unix timestamps to readable dates and back, with a live clock, time zones, a time calculator and code snippets.
Updates every second, computed entirely in your browser tab.
Seconds
—
Milliseconds
—
—
Enter or paste a timestamp to see every format at once.
Pick a date and time to get the matching timestamp.
Choose a base time to see the calculated result.
The same instant shown in other time zones.
Enter or paste a timestamp to see every format at once.
const date = new Date(1700000000 * 1000) date.toISOString() // ""
from datetime import datetime, timezone datetime.fromtimestamp(1700000000, tz=timezone.utc) # 2023-11-14 22:13:20 UTC
t := time.Unix(1700000000, 0).UTC() fmt.Println(t.Format(time.RFC3339)) // 2023-11-14T22:13:20Z
echo date('Y-m-d H:i:s', 1700000000); // 2023-11-14 22:13:20 (UTC)SELECT FROM_UNIXTIME(1700000000); -- 2023-11-14 22:13:20
SELECT UNIX_TIMESTAMP('2023-11-14 22:13:20'); -- 1700000000date -r 1700000000 # macOS / BSD date -d @1700000000 # GNU / Linux # 2023-11-14 22:13:20 UTC
'Seconds are usually 10 digits and milliseconds 13. Auto detect uses the number of digits, and you can always force a unit with the dropdown.
'Servers usually print UTC while your browser shows local time. Both are shown side by side, and the display time zone dropdown lets you switch to any zone.
'Yes. Negative timestamps are accepted and converted like any other value, as long as they stay within the range JavaScript dates support.
No. The clock, conversions and snippets are all computed with JavaScript inside your browser tab.
Pretty-print, minify and validate JSON with clear error positions, a collapsible tree view and a local history of your last 5 documents.
Convert JavaScript / TypeScript object literals to clean standard JSON (and back). Supports unquoted keys, single quotes, comments, trailing commas, and formatting options.
Encode and decode Base64 text, including UTF-8 safe mode.