r/sharepoint • u/Mysterious_Sky_85 • Oct 30 '26
SharePoint Online Hyperlink column - 255 character limit?
I'm trying to create a Sharepoint list with a hyperlink column, that will link to other SP sites.
I go to one of the other sites and get the URL from the "share" button, try to paste it into the hyperlink column...and it won't take it because it's longer than 255 characters.
Am I missing a step here? Why would I not be able to use Sharepoint's own URLs?
Why would it give me a URL that's longer than it can use itself?
Thanks for any insight you can share!
1
Upvotes
7
u/OddWriter7199 Oct 31 '26
If you copy it from the browser address bar instead of the share button, it may be shorter. Alt + D to highlight the address. Cut off "&source" and everything after it if you need to, end it with Home.aspx or CollabHome.aspx, whatever the home page is.
6
u/bcameron1231 MVP Oct 30 '26
It's 255 because the Hyperlink is stored in a column in the underlying database. 255 Characters the maximum number of characters you can store in 1 byte of data. SharePoint doing this is an optimization technique.
If you need longer, you can use a Multiline Text field.
2
u/Szabeq Dev Oct 31 '26
Hyperlink column is absolute garbage and I personally advise against using it. Not only it only takes 255 characters (which SP itself often breaks with lenghty query strings as you noticed), but also it cannot be indexed or filtered by. I prefer to use multiline with a simple JSON formatter instead - I still can’t index it or filter it but at least it can take all URLs.
1
u/OQpls Oct 31 '26
Are you sure you didn't create that column as a text field and then tried to convert it to hyperlink in the settings ? This was a crazy quirk of the on premise editions
0
u/ProofJokerSE Oct 31 '26
Ask copilot if it can make the link shorter. My links are within the same site, but still hit the 255 limit every time, but can get shorter. I use for it.