Reduce String Alphabet
Limit a string to a small alphabet such as a-z and 0-9. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Limit a string to a small alphabet such as a-z and 0-9.
Type or paste above to see the result here.
What you paste never leaves this tab
Reduce String Alphabet is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, the text you paste is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.
- No upload
- No length limit
- Works offline once loaded
- Nothing stored or logged
How to use Reduce String Alphabet
- 1. Paste your text. Enter the text you want to limit, such as a name to turn into an ID or a phrase for a game that only allows certain letters.
- 2. Choose the allowed alphabet. Tap an Allowed chip: a-z, a-z 0-9 (the default), A-Z a-z 0-9, Hex 0-9 a-f or Base32 A-Z 2-7. Custom lets you type your own set, like aeiou.
- 3. Decide what happens to other characters. Fold to nearest turns accented letters into their base letter (ß becomes ss) and matches the case of the alphabet; Remove drops them; Replace with puts a character such as ? in their place. Keep spaces and line breaks is on by default.
- 4. Copy the reduced text. The result shows only allowed characters, with a count of how many were removed and how much of the alphabet the text uses.
When to use Reduce String Alphabet
Reduce String Alphabet keeps only the characters of a small alphabet you choose and folds or removes everything else. It is for IDs, file names, codes and word games where only certain letters are allowed.
- Making a plain ID from a name. A product called Crème Brûlée needs an ID with only lowercase letters and digits. The default a-z 0-9 alphabet with Fold to nearest gives creme brulee, ready for a slug or key.
- Checking which characters are valid hex. A colour or hash string was typed by hand and may contain letters outside 0-9 and a-f. The Hex alphabet keeps the valid characters so you can see what was dropped.
- Preparing text for Base32. Base32 codes only use the capital letters A to Z and the digits 2 to 7. Reducing to that alphabet shows which characters a code may contain.
- Building a word game puzzle. A puzzle only allows vowels or a fixed set of letters. A Custom alphabet keeps exactly those letters from any phrase you paste.
Examples
Plain lowercase letters and digits
Input
Crème Brûlée costs 2 €!
Output
creme brulee costs 2
Keep only hex characters
Input
Coffee 42!
Output
cffee42
About the Reduce String Alphabet tool
Reduce String Alphabet is a free online tool that works entirely inside your web browser. Limit a string to a small alphabet such as a-z and 0-9. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.
This page is one of 159 String utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.
You can shape the output with 5 settings, including Allowed, Allowed characters, Other characters and Replacement, and the result refreshes the moment you change one. 2 worked examples further down the page show exactly what the tool produces for real inputs.
Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every step is handled on your own machine rather than by a remote API.
Frequently asked questions
Is Reduce String Alphabet free to use?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How much text can I process at once?
There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.