In your code, for the modal-dialog div, add another class, modal-lg:

<div class="modal-dialog modal-lg">

Or if you wanna centre your modal dialog, use:

.modal-ku {
  width: 750px;
  margin: auto;
}
Answer from Praveen Kumar Purushothaman on Stack Overflow
🌐
W3Schools
w3schools.com › bootstrap5 › bootstrap_modal.php
Bootstrap 5 Modal
Change the size of the modal by adding the .modal-sm class for small modals (max-width 300px), .modal-lg class for large modals (max-width 800px), or .modal-xl for extra large modals (max-width 1140px). Default is 500px max-width.
🌐
Bootstrap
getbootstrap.com › docs › 5.0 › components › modal
Modal · Bootstrap v5.0
Embedding YouTube videos in modals requires additional JavaScript not in Bootstrap to automatically stop playback and more. See this helpful Stack Overflow post for more information. Modals have three optional sizes, available via modifier classes to be placed on a .modal-dialog.
🌐
MDBootstrap
mdbootstrap.com › standard › modal size
Bootstrap Modal Sizing - free examples & tutorial
Responsive popup window sizing with Bootstrap 5. Modal width, modal height, fullscreen modal, large modal with lg & xl modal classes and more. Modals have three optional sizes, available via modifier classes to be placed on a .modal-dialog.
🌐
GeeksforGeeks
geeksforgeeks.org › bootstrap › bootstrap-5-modal-optional-sizes
Bootstrap 5 Modal Optional Sizes - GeeksforGeeks
July 23, 2025 - This is used to create different sizes modals. ... Note: If no styles are specified, it will be treated as a default modal with a width of 500px. ... Example 1: In this example, we will learn about small modals.
🌐
Bootstrap
getbootstrap.com › docs › 5.3 › components › modal
Modal · Bootstrap v5.3
Embedding YouTube videos in modals requires additional JavaScript not in Bootstrap to automatically stop playback and more. See this helpful Stack Overflow post for more information. Modals have three optional sizes, available via modifier classes to be placed on a .modal-dialog.
🌐
GitHub
github.com › mdbootstrap › bootstrap-modal-size
GitHub - mdbootstrap/bootstrap-modal-size: Responsive popup window sizing with Bootstrap 5. Modal width, modal height, fullscreen modal, large modal with lg & xl modal classes and more. · GitHub
Responsive popup window sizing with Bootstrap 5. Modal width, modal height, fullscreen modal, large modal with lg & xl modal classes and more. - mdbootstrap/bootstrap-modal-size
Author   mdbootstrap
🌐
Ordinarycoders
ordinarycoders.com › blog › article › bootstrap5-modal-cheatsheet
Bootstrap 5 Pop-up Modals: Cheat Sheet
Bootstrap modals have 6 default sizes: small, medium (default), large, extra-large, and full screen.
Find elsewhere
🌐
Tutorial Republic
tutorialrepublic.com › faq › how-to-change-the-default-width-of-bootstrap-modal-box.php
How to Change the Default Width of Bootstrap Modal Box
<!DOCTYPE html> <html lang="en"> ...strap.min.js"></script> <style> @media screen and (min-width: 676px) { .modal-dialog { max-width: 600px; /* New width for default modal */ } } </style> </head> <body> <div class="m-4"> <!-- Button ...
🌐
Bootstrap
getbootstrap.com › docs › 4.2 › components › modal
Modal · Bootstrap
Embedding YouTube videos in modals requires additional JavaScript not in Bootstrap to automatically stop playback and more. See this helpful Stack Overflow post for more information. Modals have three optional sizes, available via modifier classes to be placed on a .modal-dialog.
🌐
AdminKit
adminkit.io › docs › components › modal
Bootstrap 5 Modal | Docs & Examples | AdminKit
These sizes kick in at certain breakpoints to avoid horizontal scrollbars on narrower viewports. Our default modal without modifier class constitutes the "medium" size modal.
🌐
GeeksforGeeks
geeksforgeeks.org › bootstrap › bootstrap-5-modal
Bootstrap 5 Modal - GeeksforGeeks
August 20, 2024 - Default max-width of a Bootstrap modal is 500px. Bootstrap provides the option to customize the size of the Modal by using certain classes as described below:
🌐
Bootstrap
getbootstrap.com › docs › 5.2 › components › modal
Modal · Bootstrap v5.2
Embedding YouTube videos in modals requires additional JavaScript not in Bootstrap to automatically stop playback and more. See this helpful Stack Overflow post for more information. Modals have three optional sizes, available via modifier classes to be placed on a .modal-dialog.
🌐
W3Schools
w3schools.com › bootstrap › bootstrap_modal.asp
Bootstrap Modal Plugin
By default, modals are medium in size. For a complete reference of all modal options, methods and events, go to our Bootstrap JS Modal Reference.
🌐
MDBootstrap
mdbootstrap.com › standard › modal
Bootstrap Modal - free examples & tutorial
Embedding YouTube videos in modals requires additional JavaScript not in Bootstrap to automatically stop playback and more. See this helpful Stack Overflow post for more information. Modals have three optional sizes, available via modifier classes to be placed on a .modal-dialog.
🌐
Bootstrap Studio Forum
forum.bootstrapstudio.io › bootstrap studio help
Modal scaled to viewport height? - Bootstrap Studio Help - Bootstrap Studio Forum
August 29, 2024 - When activated the modal fades into the viewport, but alway exceeds it by approx. 10 % to the bottom. Is there a CSS way to make the modal appear not higher than the current viewport. I have tried max-height = 90vh in different ...
🌐
cdnjs
cdnjs.com › home › libraries › bootstrap-modal-size
bootstrap-modal-size - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers
Responsive popup window sizing with Bootstrap 5. Modal width, modal height, fullscreen modal, large modal with lg & xl modal classes and more. ... https://cdnjs.cloudflare.com/ajax/libs/bootstrap-modal-size/1.0.1/bootstrap-modal-size.dark.rtl.min.css
🌐
Studytonight
studytonight.com › bootstrap › how-to-change-the-default-width-of-bootstrap-modal-box
How to change the default width of Bootstrap modal box? - Studytonight
The modals in Bootstrap are used to add dialogs for user notification or other things. The modals come with medium default width. But we can change the default width of the modal box using Bootstrap 5.