Guide
Cleaning and counting a messy hashtag list
Hashtags are collected from everywhere: a research sheet, a competitor’s post, your last caption, a note on your phone. The pile is messy. Tags repeat with different capital letters, some have a stray symbol, and some are separated by commas, spaces or new lines. Instagram allows up to 30 in a post, and counting them by eye is error-prone. This tool reads the pile and returns a clean list and a count.
What counts as a hashtag
A hashtag is a word, usually after a #, made of letters, numbers and underscores. The tool accepts tags with or without the leading hash and in any separators, so trailrunning, #Shoes works. Doubled hashes such as ##shoes are read as one tag. A tag with a character that hashtags cannot hold, such as a hyphen in #bad-tag, is left out and mentioned in a note instead of being silently changed.
Removing duplicates
Duplicates are found without regard to capitals, because platforms treat #Running and #running as the same tag. The tool keeps the first spelling in your list and counts the others as removed. The result shows how many duplicates went. If you would rather have every tag in lower case, switch on “Make them lower case” and the clean list will use it.
Choosing the output
Pick “On one line, separated by spaces” for pasting at the end of a caption or in a comment, or “One per line” for a list you will edit or store. Each tag is written with a leading # whether or not you typed it. A note tells you how many of the 30 slots remain after cleaning, and warns if you are over.
Good habits
Use tags that describe the post, and a mix of broad and specific ones. Avoid long lists of unrelated popular tags, which look like spam and do not help the right people find the post. Check a tag in the app before using it, because some tags are restricted or filled with unrelated content. Keep a note of sets that worked for each kind of post.
A worked example
The sample text is #Running #running, trailrunning #TrailRunning ##shoes #marathon #bad-tag #5k #Shoes. The tool keeps five tags and writes them as #Running #trailrunning #shoes #marathon #5k. Three duplicates are removed: the second #running, #TrailRunning and #Shoes. The note reports that 25 of the 30 hashtags remain and that #bad-tag was left out because it holds characters a hashtag cannot have. With one-per-line output, the same five tags appear on five lines.
Limits
The tool deals with text only. It does not know which hashtags exist, are banned, are popular or are relevant, and it cannot post anything. Rules for what a hashtag may contain differ slightly by platform and language, so a tag that is valid on one network may be rejected on another. Always check a pasted caption before publishing.
A tidy workflow
Collect candidate tags in one document, paste the lot into the counter and read the note about tags it left out. Fix those at the source, choose the output style and copy the result. Keep the cleaned list with the date and the kind of post it was used for, so that the next time you post something similar you can start from a proven set.
Related tools
- Instagram Caption Line-Break Tool keeps paragraph gaps in the caption that carries the tags.
- YouTube Tag Counter counts video tags against a character limit.
- LinkedIn Post Formatter prepares a post for a different network.
- Case Converter changes the capitalisation of lists of words.
Checked against the current version of the Instagram Hashtag Counter & Cleaner on .

