Extract the options of a drop-down list on a website
Drop-down menus are select elements with option children. In LightCube Data Extractor choose CSS Selector and enter select option, or a more specific selector such as #country option. It returns each option's text in a Content column, ready to export as CSV or copy. CSS Selector has 3 free uses a day.
Do this in one click with LightCube Data Extractor, a free Chrome extension. No account needed.
Add to Chrome, free ↗Step by step
- Right-click the drop-down and choose Inspect to find its id or name.
- Open the extension and choose CSS Selector.
- Type
#theid option(orselect[name="thename"] option). - Check the preview and click CSV or Copy.
Selector examples
| Selector | Matches |
|---|---|
| select option | Options in every drop-down |
| #country option | Options in the drop-down with id country |
| select[name="state"] option | Options in the drop-down named state |
Custom drop-downs
Some sites build menus from divs that only appear after a click. Open the menu first, then use a selector for the visible items, often [role="option"].
Test first
Run document.querySelectorAll("#country option").length in the DevTools console to check the count before spending a daily use. See finding selectors.
FAQ
- Does it get option values or only text?
- The Content column holds the visible text.
- How many per day?
- CSS Selector has 3 free uses per day.
- Long text?
- Content is captured up to 500 characters per element.
Related guides
Updated 2026-11-11.