What is the maximum length of url MS servers accepts before throwing error 400

Aymen Mehrez 0 Reputation points
2026-08-17T16:45:20.32+00:00

I am trying to prefill an MS form (which contains many text area fields, so the URL is undoubtedly going to exceed the 2048 characters.

i wanted to know what would be the max number of characters i can prefill before going through this

Microsoft 365 and Office | Microsoft Forms | For business
0 comments No comments

2 answers

Sort by: Most helpful
  1. Jay1 Tran 605 Reputation points Independent Advisor
    2026-08-17T17:25:29.7633333+00:00

    Hi Aymen,

    Thank you for reaching out.

    Currently, there does not appear to be any official Microsoft documentation specifying the maximum supported length of a Microsoft Forms pre-filled URL. Therefore, a Forms-specific maximum cannot be confirmed from the publicly available documentation. The actual behavior may vary depending on factors such as the browser, URL encoding, intermediary services, and how Microsoft Forms processes the request.

    As a practical guideline, keep the complete encoded URL below approximately 2,000 characters, since long text and special characters can increase the URL length after encoding. Please consider pre-filling only short fields and testing the link in the intended browsers.

    I hope you found the answer helpful. Should you have any further questions, please feel free to reach out and let me know. I'll be happy to help.

    Thank you for your patience and understanding. Wishing you a great day ahead.


    If the answer is helpful, please click "Yes" and kindly upvote it. If you have extra questions about this answer, please click "Comment".   

    Note: Please follow the steps in the forum document to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

  2. Bruce (SqlWork.com) 85,281 Reputation points
    2026-08-17T17:21:15.3866667+00:00

    the 2048 is the max length of the url (base plus query string). so the length of the base url matters, plus any character encoding which increases the length of a query string value. there are the "&" and "=" separators for each field, so the number of fields effects the max length. the length of the field names will also have an effect.

    all this means is the length is pretty dynamic.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.