What does a SharePoint link converter do?
When you open a file from a SharePoint document library or from OneDrive for work and copy the address from the browser, you do not get a short link to the file. You get something like https://contoso.sharepoint.com/sites/Team/Docs/Forms/AllItems.aspx?FolderCTID=0x0120…&id=%2Fsites%2FTeam%2FDocs%2Freport%2Epdf&viewid=…&parent=…. That address opens the library with the file selected, together with a view id and a content type id that have nothing to do with the file. The actual location of the file, its server path, hides inside the id parameter, written with percent-encoding.
This converter reads the id parameter, decodes it and puts it back after the protocol and the host. The result for the example above is https://contoso.sharepoint.com/sites/Team/Docs/report.pdf: the plain link that points at the file itself. You can also ask for the containing folder, which the address carries in the parent parameter, and you can paste many addresses at once, one per line.
The result is shown readable, with real spaces, so you can see the path. When you need a link to paste in a message or a document, tick the option to encode spaces and special characters, and the same path is written with %20 and the like, as the web requires. Older library views that put the folder in RootFolder are handled too. Everything happens in your browser: the addresses of your company's files are not sent to any server.
The tool only rearranges text. It does not check whether the file exists, and it cannot grant access: the person opening the link still needs permission on the library.
How to convert an address
- Open the page. It starts with an example address of a SQL file in a library.
- Paste your own SharePoint or OneDrive address, or several, one per line.
- Choose what to return: the file or folder named in
id, or the folder that contains it. - Read the result. If you need a link to paste elsewhere, tick "Encode spaces and special characters".
- Copy the result, or use "Continue with" to inspect it in the URL parser.
Examples
A file in a team site
https://my-site.sharepoint.com/sites/SBL-AssuranceofLearning/AoL%20Reviews/Forms/AllItems.aspx?id=%2Fsites%2FSBL%2DAssuranceofLearning%2FAoL%20Reviews%2FAnalytics%2FSQL%2EDefinitions%2Fcourse%5Funit%5Fsets%2Esql&viewid=d65c252e
https://my-site.sharepoint.com/sites/SBL-AssuranceofLearning/AoL Reviews/Analytics/SQL.Definitions/course_unit_sets.sqlThe view id is dropped, and %2F, %2E and %5F become /, . and _.
The same link, ready to paste
With the encoding option on, the result is https://my-site.sharepoint.com/sites/SBL-AssuranceofLearning/AoL%20Reviews/Analytics/SQL.Definitions/course_unit_sets.sql. Only the space needed encoding.
A personal OneDrive file with accents
An id such as %2Fpersonal%2Fana%5Fcontoso%5Fcom%2FDocuments%2FRelat%C3%B3rio becomes /personal/ana_contoso_com/Documents/Relatório, with the accent restored.
The folder instead of the file
Choose "The containing folder" to take the parent parameter: the link to the folder that holds the file.
Common mistakes
- Pasting a sharing link. Links that look like
https://contoso.sharepoint.com/:x:/g/personal/…created by the Share button do not contain the path. Open the file in its library and copy that address. - Expecting everyone to open it. The result is a path, not a permission. The reader needs access to the library.
- Pasting a link with spaces into chat. A link with real spaces may be cut at the first space. Use the encoding option.
- Using the result for another tenant. The host name stays as in the original address. The path is only valid on that site.
- Losing the library view. The converted link opens the file or the folder directly, not the library view with its filters.
Frequently asked questions
Why is the original address so long?
SharePoint adds the view, the filters and the content type to the address so it can reopen the library exactly as you had it. For a link to the file alone, only the path matters.
Does the converted link always open the file?
If the file is a type your browser can show, such as a PDF or an image, usually yes. Office files may open in the web app or download. This depends on the library settings.
Does it contact SharePoint?
No. It only reads the text you paste, in your browser. It does not check the file.
How do I read the other parameters?
Open the original address in the URL parser to see every parameter decoded.
What if the path has special characters?
Use the encoding option, or encode the path yourself with the URL encoder.