If you work anywhere near software, you will keep running into the same strange strings. There is a block of text ending in ==, a 64-character hexadecimal "fingerprint", an ID like 3f2b8c1e-…, or a ten-digit number that is supposed to be a date. They look like gibberish, but each one does a specific, sensible job.
This guide explains four of the most common ones in plain English: what they are, where you will see them, and the mistakes worth avoiding. Along the way we point to the free Pocket tools that handle each job in a couple of clicks.
Base64: turning data into safe, plain text
Base64 is a way of representing any data, whether text, images or files, using only 64 "safe" characters: A–Z, a–z, 0–9, plus + and /, with = used as padding at the end. It exists because many older systems, such as email and some web formats, were designed to carry plain text and could mangle anything else.
Where you will meet it
- Email attachments, which are usually Base64-encoded behind the scenes.
- Data URLs that embed small images directly in HTML or CSS.
- API keys, tokens and configuration values passed around as text.
- The middle sections of JSON Web Tokens, which use a URL-safe variant.
The big misconception
Base64 is encoding, not encryption. Anyone can decode it instantly, so it hides nothing. If you see a password "protected" with Base64, it is not protected at all. Also bear in mind that Base64 makes data roughly a third larger, which matters when you embed big files.
Pocket Base64 encodes text into Base64 or decodes it back, handles full Unicode (so accents and emoji survive the trip), and does everything in your browser without sending anything anywhere.
Hashes: fingerprints for data
A hash function takes any input and produces a fixed-length output, often called a digest or fingerprint. Change a single character of the input and the fingerprint changes completely. Crucially, it is a one-way street: you cannot work backwards from a hash to the original text.
What hashes are good for
- Checking downloads: software sites often publish a SHA-256 value so you can confirm the file you received is the one they released.
- Spotting changes: if two hashes match, the inputs are (for practical purposes) identical.
- Version control: tools such as Git identify commits by hash.
Which SHA should you use?
The SHA family comes in several sizes. SHA-1 produces a 160-bit hash and is now considered weak against deliberate collisions, so avoid it for anything security-related. SHA-256 is the everyday default; SHA-384 and SHA-512 give longer outputs for when a specification asks for them.
One important warning: a plain, fast hash is not a good way to store passwords. Proper password storage uses deliberately slow algorithms designed for the purpose, such as bcrypt, scrypt or Argon2.
Pocket Hash shows SHA-1, SHA-256, SHA-384 and SHA-512 fingerprints, updating live as you type. It is computed entirely in your browser with the Web Crypto API, so your text never leaves your device.
UUIDs: IDs that don't need a central counter
A UUID (universally unique identifier) is a 128-bit value usually written as 36 characters, such as 550e8400-e29b-41d4-a716-446655440000. The most common type, version 4, is generated almost entirely at random.
Why bother? A traditional database counter (1, 2, 3…) needs one central place handing out numbers. Random UUIDs let separate systems, phones or offline apps create IDs independently, with a chance of two ever clashing so small it is not worth worrying about. They also avoid revealing how many records you have, which sequential numbers can give away.
The trade-offs are that UUIDs are long, awkward to read aloud, and random ones can be less efficient as database indexes than sequential numbers.
Pocket Ident generates random version-4 UUIDs in your browser, one at a time or in a batch, with an option for uppercase output.
Unix timestamps: how computers count time
A Unix timestamp is the number of seconds since midnight UTC on 1 January 1970. Right now that is a ten-digit number. Computers like it because it is a single integer with no time zones, month lengths or daylight saving to argue about.
Common gotchas
- Seconds or milliseconds? JavaScript and many APIs use milliseconds, giving a 13-digit number. Mix them up and your date lands in 1970 or thousands of years in the future.
- Time zones: the timestamp itself is always UTC. Confusion creeps in when converting to and from local time.
- The year 2038: systems that store the value as a signed 32-bit number will overflow in January 2038. Most modern software uses 64-bit values, but older embedded systems may not.
When humans need to read dates, ISO 8601 (for example 2024-03-15T09:30:00Z) is the clearest standard format to use.
Pocket Epoch converts in both directions. Paste a timestamp and it works out whether it is seconds or milliseconds automatically, then shows your local time, UTC, ISO 8601 and a relative time. Going the other way, it turns a date (interpreted in your local time zone) into seconds and milliseconds.
Quick reference
| Thing | What it is | Reversible? | Typical use |
|---|---|---|---|
| Base64 | Text-safe encoding of data | Yes, by anyone | Email attachments, data URLs, tokens |
| SHA hash | Fixed-length fingerprint | No | Verifying files, detecting changes |
| UUID v4 | Random 128-bit identifier | Not applicable | Database keys, distributed systems |
| Unix timestamp | Seconds since 1 Jan 1970 UTC | Yes, to a date | Logs, APIs, databases |
Other odd jobs worth a bookmark
A few more everyday chores tend to crop up alongside the ones above:
- Renaming things: Pocket Case switches text between camelCase, snake_case, kebab-case, Title Case and more.
- Comparing versions: Pocket Diff lines up before and after text and highlights what was added and removed, line by line.
- Strong secrets: Pocket Cipher makes passwords or passphrases in your browser, with an option to avoid look-alike characters.
- Placeholder content: Pocket Lorem produces lorem ipsum by paragraphs, sentences or words.
A sensible habit: never paste live secrets, such as production API keys or customer data, into any tool you don't trust. Where possible, use tools that run locally in your browser, as Base64, Hash, Ident and Cipher do.
Try it yourself
The quickest way to make these ideas stick is to see them in action. Paste the current time into a converter, change a digit and watch the date jump, then compare a seconds value with a milliseconds one. Start with Pocket Epoch, our free Unix timestamp converter, and keep it handy for the next time a log file hands you a mystery number.
