One tag per line (spaces become underscores)
Added as -tag

Search query

Add some tags or pick filters above to build a search query.

A builder for the search queries used on Danbooru-style image sites (Danbooru / Gelbooru / Safebooru and friends), so you don't have to remember the metatag syntax. Type the tags to include and exclude, then pick a rating (general / sensitive / questionable / explicit), an order (by score, by favorites, trending, random, oldest), an aspect ratio (landscape / portrait / square / 16:9 and so on), and a minimum score, and it produces a query like `rating:general order:score score:>=50 1girl long_hair -comic`. Spaces in tags are converted to underscores per booru convention, and excluded tags get a leading `-`. You can paste the output straight into the search box, or use the "Open on" buttons to jump to the search results on Danbooru / Gelbooru / Safebooru in a new tab (navigation only happens when you click). It saves the busywork of hand-typing search syntax — sorting the best-rated hits to the top with order:score, narrowing to portrait or landscape with ratio:, or filtering out low-rated posts with score:>=. Your chosen filters (rating, order, ratio, minimum score) are stored on this device so you start from the same setup next time; the tag text itself is content, so it is not saved. Query building is all string processing in your browser — no external API or dictionary — and the tags you type are never sent anywhere.

How to use

  1. Enter the tags to include, one per line (spaces become underscores). Put tags to exclude in the right box to get `-tag`.
  2. Pick a rating, order, aspect ratio and minimum score to narrow the search.
  3. Copy the resulting query into the search box, or use "Open on" to jump straight to Danbooru / Gelbooru / Safebooru.

FAQ

Are the tags I type sent to a server?

No. The query is built entirely with string processing in your browser, with no external API or dictionary. Only when you click an "Open on" button does your browser navigate to the booru you chose. The tags themselves are never sent anywhere automatically.

Is the rating syntax the same on Danbooru and Gelbooru?

Modern Danbooru uses four ratings — `rating:general / sensitive / questionable / explicit` — which this tool outputs. Some sites such as Gelbooru use three (`rating:safe / questionable / explicit`), so there you would read `rating:general` as `rating:safe`. The tag part and order: syntax are largely shared.

What are order:score and score:>= for?

`order:score` sorts results by score (rating), useful for bringing the best hits to the top. A minimum score like `score:>=50` filters out posts below a certain rating. This tool inserts both automatically from the "Order" and "Min score" controls.

Danbooru said my search has too many tags.

Free Danbooru accounts are limited to two tags per search (metatags like rating: and order: are often counted separately, but site rules can change). Trim to two tags, or check your login/account tier. This tool only builds the query — the limit itself is enforced by each site.

How does the aspect ratio filter work?

"Landscape" outputs `ratio:>1`, "Portrait" `ratio:<1`, "Square" `ratio:1:1`, and presets like "16:9" `ratio:16:9`. Danbooru's ratio: compares width ÷ height, so you can quickly narrow to wide wallpapers or tall phone images.

Does it remember my settings next time?

Yes. Your rating, order, aspect ratio and minimum score choices are saved on this device (in your browser) so you start from the same setup next time. "Reset settings" returns to the initial state. The tag text you type is content, so it is not saved.