Skip to main content

How to Rename a SharePoint Library Without Changing Its URL

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

A SharePoint library's name does two jobs at creation: it's the name people see and the start of its web address. Spaces in the name become %20 in the address. The way round it is to create the library without spaces and rename it afterwards: the name changes, the address doesn't.

In the Overtime Timesheet series, the payroll library was created as PayrollExports and renamed Payroll Exports. People see the friendly name; flows and links use the short address.

Prerequisites​

Before: One Word​

Created as PayrollExports, the library shows that name at the top:

The PayrollExports library with its name at the top left, the command bar, the All Documents view and the message Your files will show up here

Step 1: Open Library Settings​

In the library, select Settings (the gear) → Library settings:

The SharePoint Settings panel opened from a library, listing Add an app, Site contents, Library settings outlined in red, Restore this library, Site information and more

Step 2: Change the Name​

The Library settings panel opens with Name and Description. Change Name to Payroll Exports and select Save:

The Library settings panel with Name changed to Payroll Exports and outlined in red, the description, the More library settings link, and Save and Cancel buttons

The library's heading changes straight away:

The library heading now reading Payroll Exports, next to Add shortcut to OneDrive, Forms, Edit in grid view, Pin to Quick access, Workflows, Integrate and Create or upload

Step 3: Check the Web Address​

Open Library settings again and select More library settings. The classic settings page lists both, under List Information:

The List Information section with Name Payroll Exports and Web Address https://contoso.sharepoint.com/sites/OvertimeTimesheet/PayrollExports/Forms/AllItems.aspx, both outlined in red, and the description below

The name has a space; the address still ends /PayrollExports/. Microsoft's Create a list says the same of lists: "You can change the name of a list, but the web address will remain the same."

Common Mistakes​

MistakeWhat happensDo this instead
Creating the library with spacesThe address has %20 for each spaceCreate it without spaces, then rename
Expecting the rename to change the addressIt doesn'tChoose the address-friendly name at creation
Renaming a library a flow already uses, and checking nothingThe flow may refer to it by nameCheck flows and apps after any rename

Troubleshooting​

SymptomLikely causeFix
The old name still shows somewhereA page or link was opened before the renameReload it
You want the address changed tooRenaming never changes itCreate a new library with the address you want and move the files

FAQ​

Does this work for lists too?​

Yes. Lists have the same split between name and address, as Microsoft's quote above says. The two lists of the Overtime Timesheet series keep names without spaces, because apps use list names in formulas.

Where else can I rename it?​

The classic page from More library settings has List name, description and navigation, where the same name can be changed.

Conclusion​

Create a library with a one-word name, then Library settings → Name → a friendly name → Save. The heading changes and the web address stays exactly as it was.

Additional Resources​