How to Move Billing Address Before the Payment Method in checkout Magento 2?

By Default, the Billing address will be display with the Payment method, and the second OOTB option to display payment method is on the Payment page.

The payment page Options used to display the Billing address after the payment method. OOTB Billing address Display Options

You have a custom requirement like, Display the Billing address before all the payment methods you need to do customization for that.

In Magento, the Checkout page is rendered using JS Layout, You need to create a Plugin for the afterProcess to change the position of the billing address.

Class Magento\Checkout\Block\Checkout\LayoutProcessor used to render all the checkout stuff and we have to use process() method from the class.

create a di.xml file at the location,
app/code/Jesadiya/BillingAddressBeforePayment/etc/frontend/di.xml

Based on the XML file, Create a Plugin Class, app/code/Jesadiya/BillingAddressBeforePayment/Plugin/Block/Checkout/LayoutProcessor.php

In this plugin, We have set the js layout of the Billing address afterMethods with the beforeMethods.

before methods section will be used to display content before the payment methods.

Clear the cache and go to the checkout page to see the billing address will be top of the payment page.

Billing address Before Payment methods
Billing address Before Payment methods