KutoolsforOffice — One Suite. Five Tools. Get More Done.

How to mask sensitive information in Excel

AuthorAmanda LiLast modified

Excel worksheets used for customer records, employee lists, transactions, or reports often contain personal information that should not remain fully visible when the file is shared. Manually hiding part of every ID number, payment card number, phone number, address, email address, or name takes time, and each type of information requires a different masking pattern.

The Mask Sensitive Information feature in Kutools for Excel recognizes supported sensitive data in a selected range and replaces part of each value with masking characters. You can preview the converted values before applying them and use country-specific matching for ID and phone numbers.

Mask sensitive information in Excel

What Mask Sensitive Information can do

Mask Sensitive Information provides six operations for obscuring common types of personal data in a selected range. Each operation retains a limited part of the original value so records can still be distinguished while more sensitive details remain hidden.

🆔 Mask ID numbers

Hide the leading portion of recognized ID numbers while retaining the final digits. Select the matching country so Kutools can recognize the correct ID format.

💳 Mask payment card numbers

Replace the leading digits of recognized payment card numbers with asterisks while keeping the final four digits visible.

📞 Mask phone numbers

Hide part of each recognized phone number while retaining useful identifying digits. Select the country that matches the phone-number format.

🏠 Mask home addresses

Hide the street portion of a home address while retaining location details such as the city, state, and ZIP Code.

✉️ Mask email addresses

Hide most of the username before the at sign while keeping limited identifying characters and the email domain visible.

👤 Mask names

Keep the first letter of each name component and replace the remaining letters with asterisks.

👀 Preview before applying

Compare the source data and converted data side by side before updating the selected cells.

🌍 Recognize country-specific formats

Choose from the available countries when masking ID numbers or phone numbers so the feature can match regional formats more accurately.


Benefits of Mask Sensitive Information

Mask Sensitive Information reduces the manual work required to prepare worksheets containing personal data for sharing, testing, or presentation.

Mask a selected range quickly

Process multiple records together instead of editing every sensitive value individually.

🧮

Avoid multiple helper formulas

Use one dialog for several data types instead of designing, filling, and replacing different masking formulas for each column.

👁️

Check results before applying

Review the source and converted values side by side to see which entries are recognized and how they will be masked.

🎯

Limit changes to your selection

Process only the selected range while leaving information elsewhere in the worksheet unchanged.

🧩

Keep useful identifying details

Retain limited information, such as the final four card digits or the email domain, so records remain easier to distinguish.

🌍

Handle regional formats

Use country selection when masking ID numbers and phone numbers instead of relying on one format for every region.


How to use Mask Sensitive Information

Select the cells that contain the information you want to mask, and then apply the appropriate operation. If the selected range contains several data types, apply the relevant masking operations one at a time.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Integrated with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...
  1. Select the range containing the sensitive information.
  2. Click Kutools > Content > Mask Sensitive Information.
  3. In the Mask Sensitive Information dialog box, choose one of the following operations:
    • Mask ID Numbers
    • Mask Payment Card Numbers
    • Mask Phone Numbers
    • Mask Home Addresses
    • Mask Email Addresses
    • Mask Names
  4. For Mask ID Numbers or Mask Phone Numbers, select the country that matches the source-data format.
  5. Review the Preview pane. The Source Data and Converted Data columns show the original and masked values side by side.
  6. Click Apply to apply the current operation while keeping the dialog box open. This allows you to select another masking operation when the range contains additional data types. When you have finished, click OK to apply the current operation and close the dialog box.
Mask Sensitive Information dialog box in Excel

For example, the following US-style values are converted as shown:

Information typeSource dataMasked data
NameEmily CarterE**** C*****
US ID number900-12-1001XXX-XX-1001
Payment card number4111 1111 1111 0006**** **** **** 0006
US phone number(212) 555-0101(212) ***-0101
Home address128 Maple Street, New York, NY 10001***, New York, NY 10001
Email addressemily.carter@example.come****r@example.com

Undo maskinge

If the result is not what you expected, press Ctrl + Z to restore the original values.

📝 Note:

You can undo only the most recent action performed by Kutools. Multiple Kutools actions cannot be undone one by one.


Tips for better results

Masking depends on recognizable data patterns. Review the source formatting and preview carefully to ensure the intended values are processed.

  1. Apply one information type at a time: Each operation targets one type of sensitive information. When the selected range contains several types, use Apply after each operation and continue with the next one.
  2. Select the correct country: Country selection is available only for ID numbers and phone numbers. Choose the country that matches the source format before checking the preview.
  3. Check unmatched values: A value remains unchanged when it does not match the expected format. Look for missing digits, extra characters, inconsistent separators, or a country mismatch.
  4. Use valid payment card formats: Payment card numbers must have a recognized prefix and length and pass card-number validation. A correctly spaced number may remain unchanged if its checksum is invalid.
  5. Review the preview: Confirm that the intended entries appear in the Converted Data column before applying the operation.
  6. Keep a secure original copy: Masking replaces part of the selected values. Save an unmasked copy in a secure location if the original data may be needed later.

Best use cases for Mask Sensitive Information

Mask Sensitive Information is useful when a worksheet must remain understandable but personally identifiable details should not be fully exposed.

Share reports externally

Prepare customer, employee, or transaction reports for vendors, consultants, or other external recipients while obscuring personal details.

Example: Retain the last four digits of customer IDs and card numbers so records can still be referenced.

Create training materials

Mask real information before using a worksheet in tutorials, demonstrations, screenshots, or internal training.

Example: Hide customer names, email usernames, and street addresses before recording an Excel demonstration.

Prepare testing data

Reduce the exposure of personal details before a workbook is used for testing formulas, reports, macros, or new workflows.

Example: Give a testing team a masked copy of a customer list while keeping recognizable record endings.

Send files for troubleshooting

Obscure supported sensitive values before sending a workbook to technical support or another department for investigation.

Example: Mask names, phone numbers, and email addresses while leaving the workbook structure and formulas available for review.

Compare with Excel built-in methods

Excel formulas can hide parts of text by combining functions such as LEFT, RIGHT, and REPT. However, each data type usually requires a separate formula and pattern. Mask Sensitive Information brings the supported data types together in one dialog and provides a preview before the selected values are updated.

CapabilityMask Sensitive InformationExcel formulas
Supported tasksIncludes dedicated operations for IDs, payment cards, phone numbers, addresses, email addresses, and namesRequires a purpose-built formula for each data type and format
Country-specific matchingProvides country selection for ID and phone-number formatsMust be built into the formula logic manually
PreviewShows source and converted values side by side before applyingResults appear in helper cells after the formulas are entered
Changes to original cellsApplies masked values directly to the selected rangeUsually requires helper formulas, followed by copying and pasting the results as values
Mixed data typesProcesses multiple supported types by applying the relevant operations in the same dialogUsually requires different formulas for different columns
Best suited forQuickly masking supported sensitive data without building formulasCreating customized masking rules for a known and consistent format

Frequently Asked Questions

Why are some values not masked?

A value remains unchanged when it does not match the expected pattern for the selected operation. Check its length, separators, extra characters, and country format. For payment card numbers, also confirm that the number passes card-number validation.

Why do I need to select a country for ID and phone numbers?

ID and phone-number formats vary by country. Selecting the matching country helps Kutools recognize the source values and apply the appropriate masking pattern. Country selection is not used for payment cards, home addresses, email addresses, or names.

Can I mask several types of sensitive information in the same range?

Yes. Select the range, choose the first masking operation, and click Apply. Then select the next operation and apply it. Repeat this process for each data type in the range.

Does Mask Sensitive Information process the entire worksheet?

No. It processes only the selected range. Sensitive information outside that range remains unchanged.

Can I recover the original information after masking it?

The masked values no longer contain the hidden characters. If the workbook is still open, you may be able to undo the operation immediately. For reliable recovery, keep an unmasked copy in a secure location before applying the feature.

Does masking make a workbook safe to share?

Masking reduces the amount of visible personal information, but you should still review the complete workbook before sharing it. Check other worksheets, formulas, comments, hidden rows or columns, and any external connections that may contain unmasked data.

Conclusion

Mask Sensitive Information provides a direct way to obscure supported personal data in a selected Excel range. Choose the matching operation, select a country when processing ID or phone numbers, and check the preview before applying the changes. For mixed datasets, use Apply to process each information type in sequence.