UUID vs NanoID
What this is
NanoID defaults to 21 URL-safe characters. Smaller than 36-char UUIDs, fine for public slugs. UUIDs win when you must talk to SQL uniqueidentifier, Java UUID, or a spec that says RFC 4122. This generator stays on UUID; do not mix formats in one column.
Open the generator — v4, v7, and v5 in this tab.
FAQ
- Can I put NanoID in a UUID column?
- No. The types are not the same length or alphabet. Use text/varchar for NanoID.