Search and filter design: best practices for websites

Good search and filter design makes the search box easy to find, offers autocomplete and typo tolerance, returns relevant results with clear sorting, never leaves users at a dead end, provides filters that match how people decide, shows applied filters clearly, works well on mobile and is measured through search analytics so it keeps improving.

Why search and filters matter

Many visitors arrive at a website knowing what they want. For them, search is the fastest route to content or products, and filters help narrow large collections to a manageable shortlist. When search fails to understand a query or filters are hard to use, people often assume the site does not have what they need and leave. On e-commerce sites, documentation portals and large content sites, search and filtering are among the most important features to get right.

Search and filters work together with navigation. Clear categories help people browse; search helps them jump directly; filters help them refine. Our guide to e-commerce UX best practices explains how these fit into the shopping journey.

Designing the search box

  • Place search where people expect it, usually at the top of every page
  • Make the box wide enough for typical queries
  • Use a clear placeholder that hints at what can be searched
  • Show a search icon and allow pressing Enter to search
  • Keep search visible on mobile or one tap away

Autocomplete and query handling

Autocomplete suggests queries, categories or specific items as people type, saving effort and guiding them towards results that exist. Good search also handles common problems: misspellings, plurals, synonyms and different word orders. For bilingual sites, search should work in both Arabic and English, and ideally handle transliterated terms that people may type in Latin letters.

  • Suggestions: Popular queries and matching categories as people type.
  • Typo tolerance: Matching close spellings and common errors.
  • Synonyms: Understanding that "sofa" and "couch" mean the same.
  • Recent searches: Quick access to previous queries.
  • Multilingual search: Support for Arabic, English and transliteration.

Designing the results page

A good results page shows the query, the number of results and a clear, scannable list or grid. Each result should show enough information to judge relevance, such as a title, image, price or snippet. Sorting options, such as relevance, price or newest, give users control. Highlighting the matched terms helps people see why results appear.

Avoiding dead ends

Searches that return no results are a common point of abandonment. Instead of a blank page, suggest corrected spellings, related categories, popular items or broader searches, and offer a way to contact support. Tracking these searches shows where content, product data or synonyms need improving.

Filter types and design

Filter typeUse forExample
Checkbox listsMultiple selections within a categoryBrands, colours
Range sliders or inputsNumeric rangesPrice, size
Radio buttonsOne choice from a setDelivery speed
TogglesSimple yes or no optionsIn stock only
SwatchesVisual attributesColours, materials

Choose filters based on how people actually decide, using research and analytics rather than every attribute in the database. Show the number of results for each option where possible, and hide or disable options that would return nothing.

Filters for large catalogues

Large catalogues often need faceted filters, where available options change based on the current results. For example, after filtering laptops by brand, the screen size filter only shows sizes that exist for that brand. This prevents users from selecting combinations that return nothing. Group related filters, collapse less-used ones and place the most important, such as category, price and availability, at the top. For very large sets, a search box within a filter, such as for brands, helps users find options quickly.

Showing applied filters

Users should always know which filters are active. Display applied filters as removable chips above the results, with a clear "clear all" option. Decide whether filters apply instantly or after pressing an apply button: instant updates suit desktop, while mobile often benefits from selecting several filters and applying them together.

Search and filters on mobile

  • Keep search accessible: A visible box or a prominent icon in the header.
  • Use a filter panel: A full-screen or bottom sheet panel for filters.
  • Show result counts: Update the count as filters are selected.
  • Apply and clear clearly: Large buttons to apply or reset filters.
  • Remember choices: Keep filters when users return from a product.

Accessible search and filters

Search inputs need visible labels, suggestions must be announced to screen readers and keyboard users must be able to move through suggestions and filters. Filter controls should use proper checkboxes, radio buttons and labelled sliders rather than custom elements without accessibility support. Our guide to accessibility in UI/UX design covers these patterns.

Measuring and improving

Search analytics reveal what people look for and where they struggle. Track common queries, searches with no results, searches followed by exits and filter usage. Review these regularly and adjust synonyms, product data, filters and content accordingly. Our guide to choosing the right UX metrics explains how to turn this data into meaningful measures.

Frequently asked questions

Where should the search box go?

Usually at the top of every page, often in the header, where users expect to find it.

How many filters should a site offer?

Enough to cover the main decision criteria, based on research. Too many filters can overwhelm users.

Should filters apply instantly?

Instant updates work well on desktop; on mobile, letting users select several filters before applying is often smoother.

What should a no-results page show?

Spelling suggestions, related categories, popular items and a way to get help.

Should search support Arabic and English together?

For Gulf audiences, yes. Search should handle both scripts and, ideally, common transliterations.

How do we know if our search works well?

Track no-result searches, searches followed by exits and conversion from search, and test search tasks with real users.

Related articles

{{ p.category }} {{ t }}

{{ p.title }}

{{ p.excerpt }}

U{{ author.name }} {{ p.readMins }} min read
{{ p.category }}
{{ p.title }}
{{ mo.sub }}
{{ m.tag }}
{{ m.t }}
{{ m.d }}
{{ m.left.t }}✕{{ x.t }}
{{ m.right.t }}✓{{ x.t }}
{{ m.big }}{{ m.label }}
{{ x.t }}
{{ m.label }}
✓{{ x.t }}
{{ x.t }}
{{ m.label }}
{{ x.t }}
{{ m.status }}
{{ m.label }}
{{ x.t }}{{ x.n }}
{{ x.t }}
{{ m.label }}{{ m.stepTxt }}
{{ x.t }}
{{ m.btn }}
{{ x.t }}
{{ m.q }}
{{ m.a }}
{{ x }}
{{ k.n }}
{{ k.v }}
{{ m.label }}
{{ m.status }}
{{ m.label }}
{{ st.n }}{{ st.t }}
{{ m.hub }} {{ nd.t }}
AaAaAaAa
ButtonInput fieldTag
THE SHORT ANSWER

{{ p.answer }}

KEY TAKEAWAYS
  • ✓{{ k }}
RELATED SERVICES{{ l.t }}

{{ b.t }}

{{ g.t }}{{ g.t }}

{{ b.label }}:{{ b.t }}
{{ c.ini }}
{{ c.t }}
{{ c.d }}
  1. {{ s.n }}
    {{ s.t }}
    {{ s.d }}
{{ h }}
{{ c.t }}
{{ b.alt }}
{{ b.alt }}
{{ g.alt }}
{{ g.alt }}
{{ b.title }}
{{ c.t }}
{{ c.s }}
  • {{ i }}
{{ c.t }}{{ c.s }}
{{ b.caption }}
{{ s.v }}
{{ s.l }}
{{ s.s }}
{{ b.caption }}
{{ b.title }}
{{ b.unit }}
{{ r.l }}{{ r.d }}
{{ b.caption }}
{{ b.title }}
A{{ b.a.t }}
  • {{ i }}
B{{ b.b.t }}
  • ✓{{ i }}
{{ b.caption }}
{{ b.title }}
  1. {{ t.d }}
    {{ t.t }}
{{ b.caption }}
“
{{ b.t }}
{{ b.by }}
{{ b.title }}
{{ r.d }}
{{ r.l }}
{{ b.caption }}
{{ b.title }}
{{ m.n }}
{{ b.lo }}{{ b.hi }}
{{ m.n }}
{{ m.l }}
{{ m.d }}
{{ b.caption }}
{{ b.cs.client }} case study
Case study · {{ b.cs.client }} {{ b.cs.title }} {{ b.cs.text }}
{{ f.v }}{{ f.l }}
View case study →
SOURCES AND FURTHER READING
  1. {{ s.t }}

Frequently asked questions

{{ f.a }}

U
Written by {{ author.name }}
{{ author.role }}

Keep reading

More articles from across design, AI and marketing.

All articles
{{ r.category }} · {{ r.readMins }} min{{ r.title }}

For Ambitious Founders

Startup Strategy Session Discuss Your Project with Our Senior Experts

  • No Obligation
  • Expert Insights
  • Tailored Guidance