Free Online Sqids Encoder and Decoder
SQID-WASM is a browser-based Sqids encoder and decoder for developers who need short, unique,
URL-safe IDs derived from one or more non-negative numbers.
The conversion runs locally in your browser with Go-powered WebAssembly, so you can test Sqids
quickly without sending input data to a server.
What Is SQID-WASM?
SQID-WASM is an online tool built on Sqids, an open-source
library for turning numbers into short, human-friendly identifiers. It is useful when you want IDs
that are cleaner than raw database integers and shorter than many alternative formats.
Because the encoder and decoder run in the browser, the page works well for quick testing,
debugging, and explaining Sqids behavior during development.
How to Use SQID-WASM
- Select Number to encode numbers into a Sqid, or select SQID to decode an existing Sqid.
- Enter one or more non-negative numbers, or paste a Sqid string into the input field.
- Use the swap control to switch between encode and decode modes.
- Review the result and copy it when needed.
Examples
Example conversions between numbers and Sqids
| Input (Number) |
Output (Sqid) |
| 127 |
EwF |
| 12345 |
A6da |
| 117 |
6Vs |
Why Use Sqids?
- Good for: exposing database IDs in URLs, encoding multiple numeric values into one identifier, and generating short, readable references.
- Not good for: protecting sensitive data or replacing encryption.
- Main benefits: short output, URL-safe characters, profanity filtering, and deterministic encoding.
Frequently Asked Questions
What numbers can I encode?
Non-negative integers, either as one value or multiple values encoded into a single Sqid.
Is this secure for sensitive data?
No. Sqids is intended for readable identifiers, not encryption or secure token generation.
How does it differ from UUIDs?
Sqids are shorter and based on numeric input. UUIDs are longer and optimized for different
uniqueness and randomness requirements.
Can I customize the alphabet?
Yes. Sqids supports custom alphabets. See the Sqids documentation for implementation details.