A Chrome extension that allows you to select HTML elements from any webpage and export their data to CSV format. This tool is ideal for web scraping, data collection, UX audits, and content analysis tasks without writing any code.
- Interactive Element Selection: Easily select any element on a webpage with a visual highlight guide
- Shift+Click Selection: Hold Shift to highlight elements and click to select them
- Floating Control Bar: Provides always-accessible controls with selection status and count
- Text Selection Prevention: Automatically prevents text from being selected while choosing elements
- Live Element Counter: Tracks how many elements you've selected in real-time
- Data Preview: Shows a preview of your most recently selected elements in the popup
- CSV Export: Export all collected element data to CSV format with a single click
- Comprehensive Data Capture: Collects tag name, ID, class, text content, CSS selectors, XPath, and full HTML
- Clone or download this repository to your local machine
- Open Chrome and navigate to
chrome://extensions/ - Enable Developer Mode by toggling the switch in the top right corner
- Click "Load unpacked" and select the directory containing the extension files
- The extension should now appear in your Chrome toolbar
- Click the Web Element Selector icon in your Chrome toolbar
- Click the "Start Selection Mode" button in the popup
- A floating navigation bar will appear at the top of the webpage showing that selection mode is active
- When selection mode is active, your cursor will change to a crosshair
- Hold the Shift key to see element highlighting (with a green outline and background)
- Click while still holding Shift to select an element
- Selected elements will briefly flash green to confirm selection
- The counter in both the navbar and popup will update with each selection
- Toggle Selection: Click "Stop Selection" in the navbar to pause selection mode, then "Start Selection" to resume
- Close Selection Mode: Click the "×" button to completely exit selection mode and remove the navbar
- You can also toggle selection mode from the extension popup with the "Start Selection Mode" and "Stop Selection" buttons
- Click the extension icon to open the popup
- View selected elements in the preview panel
- Click "Export to CSV" to download the data
- The CSV file will include detailed information about each selected element including full HTML
- Click "Clear Data" in the popup to remove all currently selected elements and start fresh
The extension consists of the following components:
- manifest.json: Extension configuration and permissions
- popup.html/css/js: User interface for the extension popup
- content.js: Script that runs on webpages to handle element selection
- background.js: Handles background tasks and data persistence between tabs
Selected element data includes:
- Tag name
- Element ID
- Class names
- Text content
- XPath location
- CSS selector
- Complete HTML content (in a dedicated "selectedElement" column)
- Selection timestamp
The extension maintains synchronized state between:
- The floating navbar on the webpage
- The extension popup interface
- Chrome's local storage
This ensures a consistent experience regardless of how you interact with the extension.
This extension operates entirely on your local machine. No data is sent to any remote servers, and all collected information remains in your browser until explicitly exported as a CSV file. The extension requires only the necessary permissions to function.
If the extension doesn't appear to be working:
- Make sure it's properly installed and enabled in Chrome extensions
- Try refreshing the webpage before activating selection mode
- Check if another extension might be interfering with element selection
- If the navbar disappears unexpectedly, click the extension icon and start selection mode again
Created for efficient web element collection and analysis. If you encounter any issues or have suggestions for improvements, please create an issue in the GitHub repository.