Skip to content
LineOtter

URL encoding, Base64 and Unix timestamps in plain English

What %20, Base64 strings and numbers like 1700000000 actually are, when you need to convert them, and common mistakes.

URL encoding (%20 and friends)

URLs can only contain a limited set of characters. Anything else, such as a space, & or é, is written as % followed by hex codes: a space is %20 and é is %C3%A9.

Encode a single value, such as a search term or a file name, before putting it in a link; otherwise an & in the value starts a new parameter. Encode a whole URL only when it contains spaces or accents but its structure is already correct.

In query strings, + often means a space. When decoding, keep “Treat + as a space” ticked unless the + is meant literally, such as in a phone number.

Base64

Base64 writes any data using 64 safe characters, so it can travel inside JSON, email or HTML. It makes data about a third larger.

It is not encryption. Anyone can decode it, so never treat a Base64 string as hidden. Tokens and configs often contain Base64 you can decode to see what is inside.

To embed a small image in HTML or CSS, compress it first, then use File → Base64 with the data: prefix.

Unix timestamps

A Unix timestamp counts seconds since 1 January 1970 UTC. 1700000000 is 14 November 2023, 22:13:20 UTC. Many systems, including JavaScript, use milliseconds instead, which adds three digits.

If a converted date lands in 1970 or tens of thousands of years from now, the unit is wrong. The converter detects seconds or milliseconds by length and tells you which it used.

A timestamp has no time zone; it is the same moment everywhere. Only the readable version changes, which is why the converter shows both UTC and your local time.

Common mistakes

Encoding a value twice, which turns %20 into %2520. If you see %25 followed by two digits, decode once more.

Treating Base64 as secure. Passwords or keys encoded in Base64 are readable by anyone who decodes them.

Mixing seconds and milliseconds between systems, which moves dates by decades. Check the number of digits: ten for seconds, thirteen for milliseconds in current dates.

Reading an unfamiliar string

Lots of % signs followed by two characters: URL encoding, so decode it. Letters, digits, + and /, often ending in = or ==: probably Base64. A run of ten or thirteen digits: almost certainly a Unix timestamp in seconds or milliseconds.

Tools for this