Maximum length of a URL in different browsers
In this article, we will discuss the overview of URL and Browser with examples of both of them. And finally will conclude with the Maximum length of a URL in different browsers. Let’s discuss it one by one.
URL Overview :
URL stands for Uniform Resource Locator. URLs were defined in RFC 1738 in 1994. In this, it gives the specific location over the networks and resources can be like HTML, text file, Image file, PDF file, an audio file, video file, etc. URL is defined as the web address that specifies resources located on a computer network or Internet, and It is uniquely defined as the web address. For example, In this web address https://www.geeksforgeeks.org/index.html, HTTPS is a protocol, www.geeksforgeeks.org is a hostname and index.html is the file name.
Examples of URLs are https://www.geeksforgeeks.org, https://practice.geeksforgeeks.org/jobs, etc. Every URL contains 2 parts one is the HOST part and a FILE part. So, in the example, https://practice.geeksforgeeks.org/jobs; https://practice.geeksforgeeks.org/ is the host part and the jobs are the file part.
Browser Overview :
A Browser is application software that is used to access the World Wide Web (WWW). The first web browser was created in 1990 by Sir Tim Berners-Lee. If a user has to send a request to a particular web page from a particular website, then he must have a browser installed in his/her system as it is the browser that connects to a website’s server and displays its web pages. The main role of the browser is to fetch the content from the web and display it is the user.
Google Chrome, Microsoft Edge, Mozilla Firefox, etc.
Some features of a web server are as follows.
- Every browser has an address bar to show the URL we have visited.
- Browsers allow the users to open multiple tabs either in the same window or a different window.
- We have a home button that returns to the home page any time we need.
- Browsers support a refresh, stop, reload button which helps to reload or stop the loading of the current page.
- Browsers allow us to choose the search engine we need.
- We can use the back and forward button to move back and revisit the pages we have already visited.
- Most browsers support cookies which becomes handy in getting recommendations.
Maximum length of a URL in different browsers :
Most web browsers display the URL of a web page in the address bar. There is a limit on the length of the URL basing on the browser we use. Here are the details.
- Google Chrome –
Google Chrome allows the maximum length of the URL to be of the size 2MB (2,097,152 characters).
- Mozilla Firefox –
In Firefox the length of the URL can be unlimited but practically after 65,536 characters the location bar no longer displays the URL.
- Edge –
Edge allows the URL length to be a maximum of 2083 characters but not more than 2048 characters in the path portion of the URL.
- Opera –
Opera allows the URL length to be unlimited.
- Safari –
The maximum length of URL in Safari is 80000 characters after crossing this limit the page displays an error.
- Apache(Server) –
Apache allows the URL length to be a maximum of 4000 characters after which it throws an error message.