Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Command-line converter that migrates Bootstrap 3 HTML to Bootstrap 4 using gulp and npm.
converter-bs3-to-bs4 is a gulp-based command-line tool that migrates HTML files written with Bootstrap 3 to Bootstrap 4-compatible markup, producing converted code in a separate build folder.
converter-bs3-to-bs4 is an open-source migration utility for front-end developers. It takes a folder of HTML files using Bootstrap 3 class names and structure, processes them through a gulp task, and outputs the corresponding Bootstrap 4 code in a build directory. The tool currently targets Bootstrap v4.0.0-beta and is marked as a work in progress for the final Bootstrap 4 release. It is distributed as a downloadable zip from its repository and runs on Node.js via npm.
The converter provides a set of concrete features that simplify batch migration from Bootstrap 3 to Bootstrap 4.
gulp converter), which automates the rewriting of Bootstrap 3 markup to Bootstrap 4.html folder are processed in one run; subfolders are supported, so an entire site structure can be converted at once.build folder, leaving the original HTML files untouched.npm install, making it a standard Node.js project.gulp converter.The tool is designed for developers and teams who need to bring existing Bootstrap 3 markup up to Bootstrap 4.
html folder and run one command to get Bootstrap 4 versions.The converter supports the following practical tasks:
html folder (including subfolders), run gulp converter, and retrieve the Bootstrap 4 translations from the build folder.html folder and run the converter to see the Bootstrap 4 version in isolation.The README documents a straightforward five-step process. First, download the repository as a zip and unarchive it. Second, open a command line, navigate into the project folder, and run npm install. Third, put your HTML files into the html folder; you can preserve subfolder structure. Fourth, run gulp converter. Finally, the converted Bootstrap 4 code will be waiting in the build folder.
The converter targets Bootstrap v4.0.0-beta. The project is noted as a work in progress for the Bootstrap 4 final version, so conversion behavior may change as the stable release approaches.
Download the repository as a zip, unarchive it, open a command line in the project folder, and run npm install. After that, running gulp converter will trigger the conversion of whatever HTML files are in the html folder.
Place all HTML files you want to convert inside the html folder in the project root. The example shows a project with an index.html and a folder1 containing more HTML pages, so subfolders are supported.
Your original files stay untouched. The converter copies and transforms them, writing only to the build folder. This gives you a clean separation between the Bootstrap 3 source and the Bootstrap 4 output.
The tool is served as a public repository with a direct zip download, and no pricing or license information is mentioned in the README. As a public GitHub project, it is intended for open use, but users should check the repository for license details.
