Skip to main content

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.

Sqids encoder and decoder tool

0 / 5000
Maximum 5000 characters allowed

Conversion Result

Output will appear here

Based on Sqids: short, unique, URL-safe IDs from numbers with profanity filtering.

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

  1. Select Number to encode numbers into a Sqid, or select SQID to decode an existing Sqid.
  2. Enter one or more non-negative numbers, or paste a Sqid string into the input field.
  3. Use the swap control to switch between encode and decode modes.
  4. 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.