Bootstrap 5: Mastering Input Size

Ruth Jul 09, 2026

In the ever-evolving world of web development, Bootstrap has consistently been a go-to library for creating responsive and mobile-first websites. With the introduction of Bootstrap 5, developers have seen significant improvements, including a revamped input component with enhanced customization options. One such feature is the ability to control the size of inputs, which can greatly impact the user experience and aesthetics of your web application.

A Beginner's Guide to the Latest Bootstrap 5 Utilities
A Beginner's Guide to the Latest Bootstrap 5 Utilities

Bootstrap 5 offers three predefined sizes for inputs: small, default, and large. Each size caters to different user needs and design preferences, allowing developers to create more intuitive and visually appealing interfaces.

bootstrap cheatsheet
bootstrap cheatsheet

Understanding Input Sizes in Bootstrap 5

Before diving into the specifics of each size, it's essential to understand how Bootstrap 5 applies these sizes to inputs. The library uses a combination of classes and CSS to achieve this. By adding specific classes to your input elements, you can easily control their size.

Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5

Bootstrap 5 uses the following classes for input sizes:

  • form-control form-control-sm for small inputs
  • form-control for default inputs
  • form-control form-control-lg for large inputs
Bootstrap 5.3 (2025) Cheat Sheet
Bootstrap 5.3 (2025) Cheat Sheet

Small Inputs

Small inputs are perfect for compact forms or when you want to save space on your layout. They are 38px high and have a font size of 12px. To create a small input, simply add the form-control-sm class to your input element:

<input type="text" class="form-control form-control-sm">

Small inputs can significantly improve the look and feel of your forms, especially when used in combination with other Bootstrap 5 components like buttons and cards.

Bootstrap 5 Modal Form
Bootstrap 5 Modal Form

Default Inputs

Default inputs are the standard size and are suitable for most use cases. They are 46px high and have a font size of 14px. If you don't specify a size, Bootstrap 5 will use the default size for your inputs. Here's how you can create a default input:

<input type="text" class="form-control">

Default inputs provide a good balance between readability and space efficiency, making them an excellent choice for most text fields and form elements.

Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5

Customizing Input Sizes

While Bootstrap 5 offers predefined sizes, you might want to create custom input sizes that better fit your design needs. To do this, you can use custom CSS to override the default styles or create entirely new sizes.

Officience's Bootstrap 5 Design system - no code included
Officience's Bootstrap 5 Design system - no code included
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
an email form with two different types of letters and numbers on the top right hand corner
an email form with two different types of letters and numbers on the top right hand corner
AdminKit PRO - Bootstrap 5 Admin Template
AdminKit PRO - Bootstrap 5 Admin Template
a set of colorful buttons with different shapes and sizes for web pages, presentations or presentation
a set of colorful buttons with different shapes and sizes for web pages, presentations or presentation
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Premium Bootstrap 5 Admin Template | Azia Template
Premium Bootstrap 5 Admin Template | Azia Template
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Best Free Bootstrap Login Forms » CSS Author
Best Free Bootstrap Login Forms » CSS Author
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
an image of a dashboard screen with different colors and numbers on it, as well as the
an image of a dashboard screen with different colors and numbers on it, as well as the
Bootstrap Glyphicons
Bootstrap Glyphicons
BOOTSTRAP INPUT FORM (2020) | HOW TO MAKE FORM IN BOOTSTRAP
BOOTSTRAP INPUT FORM (2020) | HOW TO MAKE FORM IN BOOTSTRAP
100+ Free Bootstrap 5 Templates » CSS Author
100+ Free Bootstrap 5 Templates » CSS Author
the different types of font and numbers
the different types of font and numbers

For example, to create an extra-large input, you can define a new CSS class and apply it to your input element:

.form-control-xl {
  height: 60px;
  font-size: 16px;
}

Then, apply this class to your input:

<input type="text" class="form-control form-control-xl">

Customizing input sizes allows you to create unique and engaging user interfaces that stand out from the crowd.

Responsive Input Sizes

Bootstrap 5 is built with responsiveness in mind, ensuring that your input sizes adapt to different screen sizes and devices. By default, Bootstrap 5 uses the same input sizes on all screen sizes. However, you can create responsive input sizes by using media queries to change the input size based on the viewport width.

For instance, you can create a large input for desktop devices and a small input for mobile devices using the following CSS:

@media (min-width: 992px) {
  .form-control-lg {
    height: 60px;
    font-size: 16px;
  }
}

@media (max-width: 991px) {
  .form-control-lg {
    height: 38px;
    font-size: 12px;
  }
}

This approach ensures that your input sizes remain consistent and user-friendly across various devices and screen sizes.

Incorporating different input sizes into your Bootstrap 5 projects can significantly enhance the user experience and the visual appeal of your web applications. By understanding and leveraging the predefined sizes and customization options provided by Bootstrap 5, you can create more intuitive, responsive, and engaging interfaces. So go ahead, experiment with different input sizes, and watch your designs come to life!