Bootstrap 5: How to Change Input Text Size

Ruth Jul 09, 2026

Bootstrap, the popular CSS framework, has evolved significantly over the years, with version 5 bringing a host of new features and improvements. One of the notable changes in Bootstrap 5 is the introduction of a new input size option, allowing for more control over the appearance of form inputs. Let's delve into the new text input sizes in Bootstrap 5 and explore how you can leverage them to enhance your web designs.

an image of a computer screen with text
an image of a computer screen with text

Before we dive into the specifics, it's essential to understand that Bootstrap 5 has done away with the old 'form-control' class for inputs. Instead, it now uses 'form-control' as a base class, with additional classes for different sizes. This change provides more flexibility and clarity in styling your inputs.

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

Understanding Bootstrap 5 Input Sizes

Bootstrap 5 introduces three new input sizes: 'form-control-lg', 'form-control-sm', and 'form-control'. The 'form-control' class is the default size, while 'form-control-lg' and 'form-control-sm' are larger and smaller versions, respectively. Let's explore each size in detail.

📝 Create Text Input Forms and Submit Button in HTML
📝 Create Text Input Forms and Submit Button in HTML

Default Input Size: 'form-control'

The 'form-control' class is the default input size in Bootstrap 5. It provides a standard input field that should work well in most situations. This size is designed to be versatile, fitting well within various form layouts without feeling too large or small.

Bootstrap 5 Classes List Cheat Sheet
Bootstrap 5 Classes List Cheat Sheet

Here's a simple example of a default text input in Bootstrap 5: ```html ```

Large Input Size: 'form-control-lg'

The 'form-control-lg' class is used to create larger input fields. This size is perfect for inputs that require more space, such as search bars or inputs with longer text. It provides a more spacious appearance, making it easier for users to interact with the input.

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

To use the large input size, simply add the 'form-control-lg' class to your input element: ```html ```

Small Input Size: 'form-control-sm'

The 'form-control-sm' class is used to create smaller input fields. This size is ideal for compact forms or when you need to save space. Despite its smaller size, it remains functional and accessible, ensuring that users can still interact with the input effectively.

Bootstrap 5.3 (2025) Cheat Sheet
Bootstrap 5.3 (2025) Cheat Sheet

To use the small input size, add the 'form-control-sm' class to your input element: ```html ```

Using Input Sizes in Form Groups

Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
the different types of font and numbers
the different types of font and numbers
an orange background with some type of text in the bottom right corner and another type of text below
an orange background with some type of text in the bottom right corner and another type of text below
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
HTML INPUT TAGS | web development | computer engineering
HTML INPUT TAGS | web development | computer engineering
Bootstrap 5 Buttons with Icon and Text Tutorial & Demo — CodeHim
Bootstrap 5 Buttons with Icon and Text Tutorial & Demo — CodeHim
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
HTML Input Types – Complete Guide for Beginners
HTML Input Types – Complete Guide for Beginners
HTML Input Types : A Comprehensive Guide
HTML Input Types : A Comprehensive Guide
BOOTSTRAP INPUT FORM (2020) | HOW TO MAKE FORM IN BOOTSTRAP
BOOTSTRAP INPUT FORM (2020) | HOW TO MAKE FORM IN BOOTSTRAP
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Stop Googling HTML Inputs—Save This Instead!
Stop Googling HTML Inputs—Save This Instead!
Progress bar using Bootstrap 5 #shorts #coding #html
Progress bar using Bootstrap 5 #shorts #coding #html
📝 Create Forms in HTML
📝 Create Forms in HTML
Bootstrap Navbar Guide and Free Navigation Examples
Bootstrap Navbar Guide and Free Navigation Examples
HTML Input Types Demo
HTML Input Types Demo
two screens showing the different types of text in an open - source web page, with one being highlighted
two screens showing the different types of text in an open - source web page, with one being highlighted
Bootstrap 5 Classes List Cheat Sheet
Bootstrap 5 Classes List Cheat Sheet
an image of a web page with different colors and font on the bottom, including two separate
an image of a web page with different colors and font on the bottom, including two separate
Bootstrap Add Rows To Table
Bootstrap Add Rows To Table

Bootstrap 5's form input sizes can also be used within form groups, allowing you to create consistent and visually appealing forms. Form groups help to organize and structure your forms, making them easier to understand and navigate.

Form Group with Default Input Size

To create a form group with a default input size, wrap your input element and label within a '.form-group' div. The default input size will be used if no additional size classes are specified: ```html

```

Form Group with Large Input Size

To create a form group with a large input size, include the 'form-control-lg' class in your input element: ```html

```

Form Group with Small Input Size

Similarly, to create a form group with a small input size, include the 'form-control-sm' class in your input element: ```html

```

In conclusion, Bootstrap 5's new input sizes provide web developers with greater control over the appearance of form inputs. By utilizing the 'form-control-lg', 'form-control-sm', and 'form-control' classes, you can create more visually appealing and functional forms that cater to various user needs. Embrace these new features and elevate your web designs to the next level with Bootstrap 5.