About GitHub URL Parser
Paste any GitHub link: a repository, a file or folder on a branch, a raw file, a commit, a release, a pull request, or an HTTPS or SSH clone address. The parser picks out the owner, repository, branch, tag or commit, and the file path, including a highlighted line range.
From those parts it builds the links you usually go looking for: the raw file address, HTTPS and SSH clone addresses, the GitHub CLI command, and ZIP and tar.gz downloads of that branch or commit. It is pure text work, so nothing is looked up on GitHub and private repositories stay private.
How it works
- The address is read as text. SSH forms such as git@github.com:owner/repo.git are recognised as well as web links.
- The words after the repository name (blob, tree, commit, releases, pull…) say what the link points to; the part after blob or tree is the branch, tag or commit.
- Raw, clone and archive links are built from those parts with GitHub’s usual address patterns. Nothing is requested from GitHub.
Questions
Does it check that the repository or branch exists?
No. It never contacts GitHub, so it cannot know. The links it builds follow GitHub’s address patterns and work when the repository, branch and file exist and you have access.
Why might the branch and path be split in the wrong place?
Branch names may contain slashes, as in feature/login, and a GitHub link does not mark where the branch ends. The parser takes the first part after blob or tree as the branch; GitHub itself uses its list of branches to decide.
What does HEAD mean in the archive links?
When the link names no branch, HEAD stands for the repository’s default branch, so the download is whatever that branch holds.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.