LinkedIn Search Query Builder
LinkedIn’s search bar rewards precision, but hand-building nested Boolean is easy to get wrong. This builder turns plain lists of job titles, companies, keywords and exclusions into one copy-ready LinkedIn or Sales Navigator query, then checks its structure before you run it. Everything runs in your browser.
Free tool · runs in your browser
Build a Boolean search for LinkedIn
Describe the people you want in plain terms. The builder adds the quotes, brackets and operators, then scores how focused the query is.
- Boolean-safe grouping
- Sales Navigator ready
- Exclusion checks
- Length budget
1Describe the people
Separate with commas or new lines. Multi-word titles become exact phrases; the builder adds the Boolean.
The query matches profiles that mention these names. A trailing legal suffix such as “, Inc.” stays with the company.
Every keyword must appear, so keep this list short. One or two qualifying terms works better than a wish list.
Any profile containing these phrases is removed. Use sparingly: NOT also drops people who mention the term in a past role.
Location, seniority, headcount and connection degree belong in the search filters, not the keyword string, where they would match profile text instead.
2Your Boolean query
Waiting for titlesPaste into the main LinkedIn search bar or the Keywords field in Sales Navigator, then set location, seniority and headcount with the filters.
Characters: 0 Working budget 320
3Query strength
Add job titles to see query strength, term counts and structural checks.
- Weak
- Thin
- Workable
- Strong
— Add job titles to build a query
- Titles 0
- Companies 0
- Operators 0
4Checks and fixes
- Info Start with two to five job-title variants, then add companies or keywords to narrow the search.
What this LinkedIn search query builder does
A LinkedIn search query is a Boolean instruction for the search field: which phrases must appear, which may appear, and which must not. Writing one by hand is mostly punctuation work. One missing bracket changes the meaning, one extra AND can shrink the result set, and one unclosed quote can make the rest of the string behave unpredictably.
This builder separates the thinking from the syntax. You supply the terms in plain language. It removes duplicates, quotes each phrase, groups alternatives with OR, joins separate requirements with AND, and puts exclusions behind NOT. It also checks the structure of the result: whether the title list has enough variants, whether there is anything narrowing the search, whether an exclusion cancels an included term, and whether the string has grown past a workable length.
It is a query writer and a structural checker. It does not sign in to LinkedIn, run a search, return a result count or predict how many people will reply.
How to use the builder
- Enter the job titles you would use for the same person. Include the synonyms your market actually uses, for example “Head of Marketing”, “Marketing Director” and “VP Marketing”.
- Optionally add target companies. The builder turns them into one OR group joined to the titles with AND.
- Optionally add must-have keywords. These are joined with AND, so every one must appear. Keep this list short.
- Optionally add exclusions for roles you do not want, such as interns or agency recruiters.
- Read the query strength score and the four bars. They describe the structure of the query, not its reach.
- Read the checks, edit, then use Copy query and paste the string into LinkedIn or Sales Navigator.
How the query is assembled
Every term is wrapped in double quotes, so each one is matched as an exact phrase. Alternatives are grouped in brackets. Requirement groups are joined with AND, and an exclusion group is prefixed with NOT directly, without an AND in front of it.
| Your list | Operator used | Resulting part of the query |
|---|---|---|
| Job titles | OR inside brackets | ("Head of Marketing" OR "VP Marketing") |
| Target companies | AND, then OR inside brackets | AND ("Acme" OR "Globex") |
| Must-have keywords | AND for each term | AND "demand generation" AND "outbound" |
| Exclusions | NOT, then OR inside brackets | NOT ("intern" OR "student") |
Terms are separated by commas, semicolons or new lines. A company legal suffix that arrives as its own comma-separated fragment, such as “Acme, Inc.”, is re-attached to the company name instead of becoming a separate OR term. Duplicate terms are ignored case-insensitively. Each list has a cap (30 titles, 40 companies, 20 keywords, 20 exclusions) and the tool tells you when it has ignored extra entries.
If you paste a string that already contains uppercase AND, OR or NOT into the title, company or keyword field, the builder splits it back into plain terms and warns you. That keeps the output valid, but it cannot know which field a pasted company or exclusion belonged to, so enter each list separately for a clean result.
LinkedIn and Sales Navigator syntax that works
| Syntax | Effect | Practical caveat |
|---|---|---|
"quoted phrase" | Matches the words together as a phrase. | Exact matching misses reordered or abbreviated versions, so list the variants you care about. |
( ) | Groups terms so OR is evaluated as one block. | One level of grouping is enough for most people searches. |
AND | Both sides must appear. | Every extra AND narrows the pool, and several can reduce it to zero. |
OR | Either side may appear. | Widens the pool; too many OR phrases produces a noisy list. |
NOT | Excludes profiles containing the term. Put NOT immediately before a term or bracket group; no AND is needed. | Removes anyone who mentions it anywhere, including a past role. |
* | Not supported in LinkedIn Boolean search. | The builder strips asterisks and asks you to list variants instead. |
+ and - | Sometimes look as if they work, but LinkedIn does not officially support them. | Use AND and NOT instead. A leading minus in the Exclude field is accepted and converted to NOT. |
[ ], { }, < > | Not grouping symbols; LinkedIn treats them as ordinary characters. | The builder removes them so they cannot break a term. |
Type Boolean operators in capitals. Lowercase “or” is ordinary text, and the builder deliberately leaves it alone inside a title such as “Director of Sales or Marketing”. LinkedIn resolves exact phrases first, then brackets, then NOT, then AND, then OR, which is why the builder keeps every OR list in its own bracket group.
Where to paste the query
- In LinkedIn.com, paste the string into the main search bar at the top of the page and run the search, then choose People if the results default elsewhere. LinkedIn documents Boolean search for this bar.
- In Sales Navigator lead search, paste it into the Keywords field, then apply the structured filters for location, seniority, current job title, headcount and connection degree.
- Keep filters out of the search string. A city name in the search field matches profiles that merely mention the city; the Location filter restricts the search properly.
One important difference: LinkedIn’s search field reads the whole profile, not just the current position. Someone who was a “Marketing Director” three years ago can match a title phrase today. If current title matters, pair the query with the Current job title filter in Sales Navigator and check a sample of results.
How the query strength score is calculated
The score is out of 100 and combines four structural checks. Each part is computed from the fields you entered and the finished string; none of it is a prediction of results.
| Component | Points | How it is awarded |
|---|---|---|
| Title coverage | 40 | 22 points for two to five titles, 18 for six to eight, 14 for nine to twelve, 10 for one and 8 for thirteen or more. Up to 18 more points when at least half the titles contain a seniority marker (founder, chief, VP, head, director, manager, lead, partner, principal and similar); 12 if only some do. |
| Targeting | 30 | 18 points for target companies (14 if there are more than 30) and 12 points for one to five must-have keywords (8 for more than five). |
| Exclusion hygiene | 15 | 15 points for one to five usable exclusions, 10 for more than five, 8 for none, and 0 when an exclusion also appears inside an included term. |
| Length headroom | 15 | 15 points up to 320 characters, 10 up to 450, 5 up to 600, and 0 beyond that. |
Status labels map to the total: Strong at 80 or more, Workable from 60 to 79, Thin from 40 to 59, and Weak below 40. A high score means the query has a workable shape. It does not mean the terms are right for your offer, and it does not mean the search will return enough people.
Worked examples
| Input | Score | Status | What the number reflects |
|---|---|---|---|
| Three marketing titles, three companies, two keywords, three exclusions | 100 | Strong | Full title coverage, both targeting signals, specific exclusions and a string inside the length budget. |
| Founder, Co-Founder, Owner with two keywords and two exclusions | 82 | Strong | Strong titles and exclusions, but no company targeting, so the targeting component is only partially filled. |
| Growth Marketer and Demand Generation Specialist, one company, one keyword | 75 | Workable | Company and keyword present, but no seniority marker and no exclusions. |
| Head of Marketing and VP Marketing, nothing else | 63 | Workable | Good titles, but no company or keyword narrowing the search. |
| Marketing Director, excluding “Director” | 43 | Thin | The exclusion cancels the included title, so exclusion hygiene scores zero. |
| Marketing | 33 | Weak | One broad title with no targeting and no exclusions. |
These are outputs from the scoring rules above, not benchmarks from real campaigns or LinkedIn result counts.
Why over-exclusion is the usual failure
NOT is absolute. Excluding “manager” does not remove only low-level roles; it removes a VP who was a manager two jobs ago. Excluding “agency” can remove a strong candidate who once worked at one. That is why the builder caps exclusion hygiene points, warns above five exclusions, and detects the specific contradiction where an excluded phrase is also part of an included title, company or keyword.
Start with no exclusions, look at the first page of results, and add only the exclusions that remove a pattern you actually saw. Broad exclusions are a common cause of a technically valid query that returns almost nothing.
Limitations
- The tool does not access LinkedIn, so it cannot show result counts, verify a title is current, or test whether a company name is spelled the way LinkedIn stores it.
- The score describes structure only. It cannot judge whether your titles, companies or keywords match your actual buyer.
- Exact-phrase quoting is deliberate, but it means a profile that says “Head of Growth Marketing” will not match the exact phrase “Head of Marketing”.
- Location, seniority, headcount and connection degree are not part of the string. They belong in the search filters.
- LinkedIn can change keyword behaviour, operator handling or input limits without notice. The 320-character budget is this builder’s working guidance for a readable, debuggable string, not an official LinkedIn limit.
- Seniority detection looks for common English title words. It does not understand every market’s naming convention.
- Only the first terms in each list are used once a cap is reached. The checks panel reports how many were ignored.
- The tool removes quotes, unsupported brackets and asterisks from your terms so the output stays valid. That cleanup is reported, but it can change a term you typed deliberately.
Frequently asked questions
Do I need Sales Navigator to use this query?
No. The string uses the Boolean syntax LinkedIn documents for its main search bar, and Sales Navigator’s Keywords field accepts it too. Sales Navigator is simply better for structured filtering and for limiting results to current job titles.
Does LinkedIn support wildcards such as market*?
No. LinkedIn’s Boolean guidance states that wildcards like asterisks are not supported. This builder removes asterisks and asks you to list the variants you need, which produces a query LinkedIn can actually evaluate.
Should I write “AND NOT” before an exclusion?
No. LinkedIn’s documented form places NOT immediately before the term or bracketed group, for example "programmer NOT manager". This builder emits that form, so you will not see an AND in front of NOT in the output.
Why does a valid-looking query return zero results?
The usual causes are too many AND requirements, an exact phrase that nobody uses, a company name that differs from the profile, or a NOT term that appears in every target profile. Remove the exclusions first, then reduce the keyword group, then loosen the titles.
Should I put the city or country in the query string?
No. Use the Location filter. A place name in the search field matches any profile that mentions it, including someone who lives elsewhere but lists a past office there.
Will this find people whose current title is different from their headline?
It can, because the search reads profile text beyond the headline. That is useful for finding adjacent titles, but it also means past experience can match. Use Sales Navigator’s Current job title filter when currency matters.
Is there a hard limit on how many Boolean operators I can use?
LinkedIn’s help notes that Boolean queries have limitations, but the practical ceiling can depend on the query and can change. Long strings are harder to debug regardless. The builder warns above 12 operators and above 320 characters so you can split the search before you waste time on a string that is difficult to reason about.
Is anything I type uploaded or stored?
No. The tool is HTML, CSS and JavaScript running in the page. There is no account, no server request, no cookie and no browser storage. Your titles and company names stay in the browser tab.
Can I reuse the same query for recruiting and for sales?
Yes, the syntax is the same, but the title and keyword lists should change. A recruiting search usually centres on the role being hired; a sales search centres on the person who owns the problem you solve. Rebuild the lists rather than stretching one query across both jobs.
Related tools
- LinkedIn Profile Scanner — check whether the profile you found is actually findable and complete.
- Job Title to Decision Maker Mapper — turn one role into the surrounding buying committee before you build title variants.
- ICP Builder — define the company and role criteria that belong in the filters around this query.
- LinkedIn Headline Generator — make your own profile match the terms your buyers search for.
- LinkedIn Outreach Message Pack — write the first message after the search returns the right people.
Next step
A query is only the front door. The work that follows — choosing accounts, sequencing touches and writing something worth a reply — is what turns a search into pipeline. See how mizanursguide.com builds B2B lead generation systems around a defined buyer instead of a scraped list.