Extract percentages (numbers followed by %)

Please log in or register to do it.

This tool extracts percentages (numbers followed by a "%" symbol) from your text. It provides flexible options so you can extract every percentage found, extract only percentages matching specified substrings, extract all except those containing specified substrings, or format the extracted percentages using a custom format.

Extraction Modes:


Extracts every percentage (e.g., "20%", "7.5%") from the text.

Extracts only percentages that contain the specified substring(s). Enter a comma‑separated list (e.g., 50, 100).

Extracts every percentage except those that contain the specified substring(s). Enter a comma‑separated list (e.g., 0).

Extracts each percentage and formats it using a custom format. Use {percentage} as a placeholder (e.g., "[{percentage}]").

Examples:

Extract All Percentages

Extracts every percentage from the text.

Before:
The discount is 20% and the tax rate is 7.5%.
After:
20%
7.5%

Extract Only Percentages Matching Specified Substrings

Extracts only percentages containing the specified substring (e.g., "7").

Before:
The discount is 20% and the tax rate is 7.5%.
After (specifying "7"):
7.5%

Extract All Except Percentages Containing Specified Substrings

Extracts every percentage except those containing the specified substring (e.g., "20").

Before:
The discount is 20% and the tax rate is 7.5%.
After (excluding "20"):
7.5%

Extract Percentages with Custom Format

Formats each extracted percentage using the custom format.

Before:
Final price includes a 15% discount.
After (format "[{percentage}]"):
[15%]
Extract only emails from specific domains
Extract CSS class names from stylesheets

Your email address will not be published. Required fields are marked *