String Obfuscator
Mask the middle of a string (secrets, emails, tokens) keeping a few visible chars, locally.
Mask a secret before you paste it somewhere
This tool replaces the middle of a string with a repeated mask character, keeping a configurable number of characters visible at each end, the way you'd write sk-abc...xyz9 instead of a full API key. It's meant for the moment before you paste something into a screenshot, support ticket, log line or Slack message and want to show the shape of a value without showing the value. The masking is a plain string transform that runs in your browser as you type.
How to use the String Obfuscator
- Paste the string you want to mask into the text field.
- Set Keep first and Keep last to choose how many characters stay visible on each end.
- Change Mask char if you want something other than an asterisk.
- Toggle Keep spaces to leave whitespace inside the string untouched by the mask.
- Copy the masked result with the copy button.
This is display masking, not encryption or redaction in any security sense. The original string you typed is still sitting in your browser's input field and in your clipboard history until you clear them yourself, and the masked output can often be guessed or brute-forced if the hidden portion is short.
Frequently asked questions
- Does masking a string here make it safe to share?
- No, this only changes how the string looks on screen; the unmasked value remains in your clipboard and in the tool's input field, so treat it as a visual aid for screenshots, not a way to safely disclose a real secret.
- Should I use this to redact a secret in a support ticket?
- It's fine for showing the shape of a key so a support agent recognizes which credential you mean, but if the secret is still valid, rotate it afterward rather than relying on the mask to have hidden it from anyone who saw the original.
- Can I choose how many characters stay visible?
- Yes, Keep first and Keep last are independent numeric settings, so you can show, for example, three characters at the start and four at the end while everything in between becomes the mask character.
- Does this tool store or transmit the string I mask?
- No, the masking function runs as plain JavaScript in your browser tab against the text you typed, so the string never leaves your device, though it does remain visible in the input field until you clear it.