String Obfuscator
Free online string obfuscator, no installation required. Mask sensitive information in strings
About String Obfuscator
Masks the middle portion of a string while leaving the first and last few characters visible, useful for safely displaying tokens, API keys, emails, or phone numbers. You control how many characters stay visible at each end and which mask character is used.
How to Use
1. Enter the text to mask in the Input box. 2. Set Visible Start (characters kept at the beginning). 3. Set Visible End (characters kept at the end; 0 hides the tail). 4. Set Mask Char (a single character, default •). 5. Use Copy to copy the obfuscated result.
Masking Behavior
If the input length is less than or equal to (Visible Start + Visible End), the original string is returned unmasked, because nothing would be hidden. Otherwise the middle section is replaced with the mask character repeated to preserve the original length, for example sk-proj-xxxx••••xxxx with 4 start and 4 end visible.
▶What is the default configuration?
▶Can I use a mask character other than the bullet?
▶Why is a short string not masked?
▶Does setting Visible End to 0 hide the tail entirely?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee