How to Center the Google Recaptcha

A short code snippet to center google recaptcha on center of the screen.

A short snippet on how to center Recaptcha. This is a small snippet in order for you to center the recaptcha box in the center of the screen. 

    /* already defined in bootstrap4 */
    .text-xs-center {
        text-align: center;

    .g-recaptcha {
        display: inline-block;
<div class="text-xs-center">
    <div class="g-recaptcha" data-sitekey=""></div>