ShortUUID Generator
Shortened UUID representation
Generating...
About
ShortUUID is a library that converts standard UUIDs into shorter, URL-friendly strings using Base58 encoding. It maintains the uniqueness properties of UUIDs while being more compact (typically 22 characters instead of 36). ShortUUIDs are useful when you need shorter identifiers but want to maintain UUID compatibility. The encoding is reversible, allowing you to convert back to standard UUID format when needed.
Use Cases
- •URLs and slugs requiring shorter identifiers
- •Systems needing UUID compatibility with shorter format
- •User-facing identifiers derived from UUIDs
- •API endpoints with shorter path parameters
- •Systems requiring reversible UUID encoding
- •Applications needing compact UUID representation
How to Generate
Library
short-uuid
NPM Package
npm install short-uuid uuidCode Example
import { v4 as uuidv4 } from 'uuid';
import short from 'short-uuid';
const translator = short();
const uuid = uuidv4();
const shortUuid = translator.fromUUID(uuid);
console.log(shortUuid); // e.g., 'mhvXdrZT4jP5T8vBxuvm75'