Tiny Tag: Generate short codes & tags!
11/01/2026 • 00:03:00
Project Reference
This article relates to a project in our portfolio.
Introduction:
Tiny Tag generates short (6–7 character) codes using algorithms like Base62 encoding.
It's useful for reducing the length of text strings, URLs, or UUIDs to make them more manageable, readable, and shareable—without sacrificing uniqueness.

🚀 How to Use
- Generate a random code or provide a seed for deterministic output.
- Select an algorithm (defaults to Base62).
- Generate one or many codes at once!

Available Algorithm
The "Base" of an ID determines how much data can be packed into a single character.
- Base 62: Uses
0–9,a–z, andA–Z. This is the gold standard for URL shorteners (like Bitly). A 6-character Base62 string provides 56.8 billion unique combinations. - Base 36: Removes case sensitivity (
0–9anda–z). Perfect for systems where users might type the code manually and you want to avoidi vs Ioro vs Oconfusion. - Base 16: Standard hexadecimal. Best for system-level IDs that need to remain compatible with legacy tools and web standards.
Random Generation vs Deterministic
Tiny Tag operates in two distinct modes:
- New Random ID: Uses
crypto.getRandomValuesfor cryptographically strong, unpredictable identifiers. Ideal for tokens, invite codes, or unique session keys. - From Data (Deterministic): This is the magic mode. If you input the same string (such as a user email or product SKU), it will always produce the same short ID. This enables consistent lookups without storing the original (and potentially sensitive) data in your database.
Why are Short Codes Useful?
Short codes solve several practical problems in modern applications:
- Cleaner URLs – Long UUIDs or database IDs can look intimidating. Short codes improve aesthetics and trust when shared.
- Human-friendly identifiers – A 6-character code is far easier to read, type, or dictate than a 36-character UUID.
- Reduced storage & bandwidth – Shorter strings mean smaller payloads, which adds up in high-volume systems.
- Deterministic mapping – With deterministic generation, you can recreate IDs on demand without storing the original source data.
- Better UX – Whether it’s invite codes, referral links, or order numbers, short IDs feel intentional and polished.
In short, they strike a balance between uniqueness, performance, and usability.
Summary
Tiny Tag is a simple utility for generating short, readable identifiers. It’s designed to replace long or unwieldy strings with compact codes that are easy to store, and work with.
Project Reference
This article relates to a project in our portfolio.