Extract matching text from pasted content

Paste text, choose the pattern you need and get one result per line to copy or download as TXT. Pick numbers, hashtags, @mentions, quoted text or lines containing a keyword.

Paste text and choose a pattern to extract

Processed in your browser · saves drafts when allowed Ready
Extracted matches

Find the parts you need in three steps

01

Paste text

Type or paste the passage to scan. The tool uses only the text in this box; it does not read files or web pages.

Choose what to extract

NeedChoose in the toolCheck the result
Digit sequencesNumbersCodes, dates and decimals may all match; check separators before treating a match as a number.
Tags beginning with #HashtagThe # is included; repeated tags stay repeated.
Names beginning with @@ mentionsThese are text patterns, not verified accounts; the part after @ in an email may also match.
Text inside quotation marksQuoted textReturns the inner text without the marks; try single or double quotation marks in the pasted passage.
Whole lines containing a phraseLines containing a keyword + enter a keywordReturns whole matching lines, ignoring case; an empty keyword gives no results.

If results are missing or unexpected

No matches found
Check the selected type and the #/@ or quotation marks in the text. For line filtering, enter a keyword and select Extract matches again.
Unwanted matches
The detector matches characters; digits in codes and the part after @ in email addresses can also appear. Review each line before copying or downloading.

Your draft on this device

Pattern matching runs in the browser. When local storage is available, your text and choices remain as a draft for your next visit. Select Clear to remove the input, result and this tool’s draft.

Comments & feedback

Rate this tool

Loading ratings…

Write a commentNo account needed

Do not share passwords, sensitive information or the contents of files you are processing.

Reviewed before posting. Email stays private.

Embed this tool on your websiteFree · Copy once, receive tool updates automatically

Paste the iframe into HTML, WordPress or any platform that supports embeds. The tool runs in the visitor’s browser; adjust its height and theme as needed.

View the embed guide and supported platforms →

<div style="max-width:900px">
  <iframe data-kitotool-embed src="https://kitotool.com/embed/en/text-extractor/" title="Text Extractor — KitoTool" width="100%" height="920" style="display:block;width:100%;border:1px solid #dbe3ee;border-radius:12px" loading="lazy" referrerpolicy="strict-origin-when-cross-origin"></iframe>
  <p style="margin:6px 2px 0;text-align:right;font:12px/1.5 system-ui,sans-serif;color:#64748b">Free tool by <a href="https://kitotool.com/en/text-extractor/" target="_blank" rel="nofollow noopener noreferrer" style="color:#2359d4;text-decoration:underline">KitoTool</a></p>
</div>

The code includes a visible credit below the iframe; its link uses nofollow for a widely distributed widget.

Optional: automatically resize the iframe

Add this script once to the page containing the iframe.

<script>
(function(){var origin="https://kitotool.com";function frames(){return document.querySelectorAll("iframe[data-kitotool-embed]")}function measure(f){if(f.contentWindow&&new URL(f.src).origin===origin)f.contentWindow.postMessage({type:"kitotool:measure"},origin)}window.addEventListener("message",function(e){if(e.origin!==origin||!e.data||e.data.type!=="kitotool:resize"||!Number.isFinite(e.data.height))return;frames().forEach(function(f){if(f.contentWindow===e.source&&new URL(f.src).origin===origin)f.style.height=Math.max(320,Math.min(12000,Math.ceil(e.data.height)))+"px";});});function connect(){frames().forEach(function(f){f.addEventListener("load",function(){measure(f)});measure(f)})}if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",connect,{once:true});else connect()})();
</script>