Turn big integers and UTF-8 text into compact 0-9A-Za-z strings, the way short-URL services pack an ID into 6 characters, all in your browser
- Runs locally
- Category Encoding & Crypto
- Best for Checking small payloads, tokens, hashes, and encoded values quickly.
Integer ⇄ base62 (short-link IDs). 125 = "21", 61 = "z", 62 = "10".
Alphabet (0-9 A-Z a-z)
What this tool does
A Base62 encoder and decoder built for the people who actually use it: engineers shortening URLs, packing database row IDs into tweet-sized slugs, and shrinking opaque tokens. Base62 uses the 62 characters that every system treats as safe in a URL path: digits 0-9, uppercase A-Z and lowercase a-z. No plus, slash or equals sign means no percent-encoding, no padding, and nothing that breaks when a link gets copied through a chat app. Two modes cover both common needs. Number mode maps a base-10 integer to its base62 form and back, so 125 becomes "21" and a 64-bit ID collapses to about 11 characters. Text mode reads your input as UTF-8 bytes, treats those bytes as one large integer, and encodes that, which round-trips any string including Chinese, emoji and accented Latin. BigInt under the hood means there is no overflow at 2^53. Everything runs locally with one-click copy and a shareable link, and nothing you type is sent anywhere.
Tool details
- Input
- Text + Numbers
- The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
- Output
- Live result + Copy
- The result area focuses on usable output, with copy, download, or preview actions when supported.
- Privacy
- Browser-side processing
- The main tool logic does not call an external API, so inputs normally stay in the current tab.
- Save / share
- Shareable URL state
- Key settings are encoded in the URL so another person can reopen the same setup.
- Performance budget
- Initial JS <= 9 KB
- No WASM budget is declared, keeping the tool quick to open on mobile.
- Best fit
- Encoding & Crypto · Developer
- Category and role tags drive related tools, internal links, and quick fit checks.
How to use
-
1. Input
Paste or drop your content into the tool panel.
-
2. Process
Click the button. All processing is local in your browser.
-
3. Copy / Download
Copy the result or download to disk in one click.
How Base62 Encoder & Decoder fits into your work
Use it for quick browser-side encoding, decoding, hashing, token checks, and share-safe transformations.
Encoding jobs
- Checking small payloads, tokens, hashes, and encoded values quickly.
- Preparing values for APIs, URLs, docs, or support tickets.
- Avoiding account-based tools when the input might be sensitive.
Encoding checks
- Do not paste live secrets unless you are comfortable with local browser handling.
- Confirm whether the operation is reversible before sharing the result.
- For hashes, compare the exact algorithm and casing expected by the receiver.
Good next steps
These links move the current task into a more complete workflow.
- 1 Unit Converter Convert between length, weight, temperature, area, volume, speed, time — instant, browser-only Open
- 2 Percentage Calculator 5 common percentage calculations — "x% of y", "x is what% of y", percentage change, increase/decrease — instant, browser-only Open
- 3 Base32 / Base58 Encoder & Decoder Base32 + Base58 encoder/decoder — RFC 4648 base32 (Crockford variant too), Bitcoin base58, Solana base58, hex/text/file input. Open
Real-world use cases
Generate a stable short code for a row before it goes public
You have an order row with primary key 980418302211. Paste it in number mode and you get a fixed five-or-six-character code that always maps back to the same id. Print it on the receipt or stamp it on a /o/ route, and decode any reported code to find the exact row in your database.
Check whether a third-party ID is plain Base62 or something else
An upstream API hands you IDs like 4kP9zQ and you suspect they are Base62 over an integer. Decode one here; if it returns a clean number and re-encodes identically, you confirmed the format and ordering. If decode rejects a character such as + or -, the source is using Base64 or a custom alphabet, not Base62.
Common pitfalls
Pasting an integer with a leading zero or a thousands separator. Number mode wants the bare digits, so 1,024 or 007 will not encode cleanly. Strip commas and leading zeros first.
Expecting text mode and number mode to agree on the same input. The string 125 in text mode encodes its three UTF-8 bytes, not the value 125, so it gives a different result from typing 125 in number mode. Pick the mode that matches what your input really is.
Sharing a private token through the shareable link. The link writes your input into the URL query string, which lands in the recipient server's access log. Use the copy button for anything sensitive.
Privacy
All Base62 work, the BigInt division, the UTF-8 byte reading and the encode-decode round-trip, runs as JavaScript inside your browser tab. No number, token or text is uploaded or logged. The only exception is the shareable link, which carries your input in the URL query string, so use the copy button instead when the value is private.
FAQ
Tool combos
Folks in your role tend to reach for these alongside this tool.
- 555 Timer Calculator Astable f = 1.44/((R1+2R2)C) + monostable t = 1.1RC — pick R1, R2, C in Ω/kΩ and µF/nF, read frequency, duty cycle and pulse width — browser-only
- Add Line Numbers Number every line of pasted text — set start, step and separator, zero-pad to align, skip blanks, or strip numbers back off — browser-only
- Age Difference Calculator The exact gap between two birthdays — years/months/days, percentage, and the date one person is twice the other's age — browser-only
- AI Eval Planner Generate eval cases, pass criteria, and edge cases from an AI feature, risks, and user path.