About this tool
Generate a consistent release tag format — v-prefix, SemVer 2.0.0, prerelease channels, build metadata — with regex and git commands.
This generator designs a consistent git release tag format built on Semantic Versioning 2.0.0: the conventional v prefix, MAJOR.MINOR.PATCH, optional alpha/beta/rc prerelease segments and environment labels as either prerelease identifiers or build metadata. It outputs the format template, a validation regex that rejects malformed tags (including leading zeroes), the git commands to cut an annotated tag, and notes on how SemVer precedence treats each part. It is for teams standardising release tags across repositories and CI pipelines.
Open Git Tag Naming Generator on AltFTool — it loads instantly in your browser.
Provide your input — an image, text, or data.
Let the tool analyze or generate the result.
Review, refine, and reuse the output wherever you need it.
Numeric rules, prerelease hyphen and build-metadata plus sign follow the spec items 2, 9 and 10.
Shows that v2.0.0-rc.1 sorts below v2.0.0 and that +metadata never affects ordering.
The regex rejects leading zeroes and malformed segments, and ships in a one-line CI check.
The v prefix (v1.2.3) is the dominant convention — git's own releases use it, and tools like GoReleaser and semantic-release expect it by default. Strictly, the v is not part of the semantic version: semver.org's FAQ states v1.2.3 is not a semantic version, the version is the 1.2.3 after the prefix. Pick one style and use it everywhere.
Append the prerelease identifiers with a hyphen: v2.0.0-rc.1, then v2.0.0-rc.2, and finally the plain v2.0.0. SemVer item 11 gives prerelease versions lower precedence than the associated normal version, so tooling correctly treats every rc as older than the final release, and rc.2 as newer than rc.1.
Prerelease identifiers (after -) affect version precedence; build metadata (after +) is ignored for precedence entirely per SemVer item 10. So v1.2.3-staging.1 is an earlier version than v1.2.3, while v1.2.3+staging is the same version as v1.2.3 to any SemVer-aware tool. Use the prerelease slot for maturity stages and build metadata for pure labels.
Annotated tags (git tag -a) — they are full git objects storing the tagger's name, date and a message, they can be GPG-signed, and git describe uses them by default. Lightweight tags are just pointers with no metadata, which the Pro Git book recommends only for temporary or private labels.