Prompt Library 💻 Coding & Dev Email Extractor
Claude 💻 Coding & Dev Basic

Email Extractor

Extract email addresses from a document into a JSON-formatted list.
👁 12 views ⎘ 0 copies ♥ 0 likes

The Prompt

Your task is to extract all email addresses from the provided text or document and return them as a clean JSON array.

Instructions:
1. Find every email address in the input, regardless of formatting or context
2. Remove duplicates
3. Return a JSON array of strings, one email per entry, sorted alphabetically
4. If no email addresses are found, return an empty array []
5. Do not include any other text in your response — only the JSON array

Example output format:
["alice@example.com", "bob@company.org", "contact@website.net"]

📝 Fill in the blanks

Replace these placeholders with your own content:

["alice@example.com", "bob@company.org", "contact@website.net"]

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Paste into Claude

Open your preferred AI assistant and paste the prompt to get started.