String obfuscator
Obfuscate a string (like a secret, an IBAN, or a token) to make it shareable and identifiable without revealing its content.
About String obfuscator
Masks the middle of a string with asterisks while keeping a few characters at the start and end visible, so a secret, token, IBAN or card number can be shared or shown in a screenshot and still be recognised without being usable.
When you would use it
- Pasting an API key or token into a bug report, a ticket or a chat so the reader can identify which key it is without seeing it.
- Showing a partially hidden IBAN, card number or phone number in a UI or a screenshot.
- Logging an identifier without writing the full secret to the log.
How to use it
- Paste the string.
- Choose how many characters to keep at the start and at the end, and whether spaces stay visible.
- Copy the masked result.
Things worth knowing
- Every character between the kept parts becomes an asterisk, so the length of the original is still visible. Keep that in mind if the length itself is sensitive.
- Keeping spaces makes grouped numbers (IBANs, card numbers) easier to read while still hiding the digits.
- The more characters you keep, the easier the secret is to guess or match against leaks. For API keys, a few leading characters are usually enough to identify them.
- This is a display aid, not a security control. The masking is done in your browser and nothing is sent anywhere, but anyone with the original string can of course still use it.
Frequently asked questions
- Can the masked string be reversed?
- No, the hidden characters are replaced and not recoverable from the output. That is why you should keep the original somewhere safe if you still need it.
- How much should I keep visible for a credit card number?
- Industry practice (PCI DSS) allows at most the first six and last four digits to be shown; most receipts show only the last four.