Migrate from Firebase Authentication to Keycloak
Move your Firebase project’s users to upstream Keycloak on a dedicated cluster in the region you choose. Users, custom claims and social logins come along from auth:export; passwords are set again by email link, because Keycloak cannot verify Firebase’s scrypt hashes yet.
Vendor facts checked on · Sources
Users, their verified flags, custom claims and social providers move from the file firebase auth:export writes. Your apps switch from Firebase ID tokens to Keycloak tokens. Password users set a new password by email link, and second factors are enrolled again. You test everything on a staging copy first.
What moves from Firebase Authentication, and what does not
Re-created means we build it again in your realm from your inventory; it does not come out of an export.
Passwords are set again by email link
Firebase exports password hashes, made with its own modified scrypt. Keycloak ships hash providers for Argon2 and the PBKDF2 family, and none for Firebase’s scrypt, so the hashes cannot be verified and we do not import them.
Firebase users who sign in with a password set a new one after the move. We import them with Keycloak’s Update Password required action, and Keycloak emails each of them a link to set a new password (the execute-actions email). The link opens Keycloak’s own page and works for as long as you choose.
Users who sign in with Google, Microsoft or another identity provider do not need a password. Once the same provider is set up in your realm, their first sign-in finds their account by email and asks them to confirm the link.
We are evaluating an scrypt hash provider for our clusters. It is not available, and we make no promise of a date.
The export
- Run firebase auth:export users.json --format=json.
- List the providers enabled in the project, and the custom claims your apps read.
- List the apps, and every place that verifies Firebase ID tokens.
Treat the export as a secret: keep it encrypted, never send it by email or chat, and delete every copy when the move is done.
Moving from Firebase Authentication, step by step
- 1
Export
Run firebase auth:export in JSON format. List the sign-in providers, the custom claims your apps and rules read, and every service that verifies Firebase ID tokens.
- 2
Map
Convert the file with the Firebase converter: claims as attributes or groups, the uid as firebase_uid, and Update Password for password users. Re-create the providers in Keycloak and add mappers for the claims apps read.
- 3
Dry run on a staging copy
Import into a staging realm. Sign in from each app with a password user and a social user, and check that your backend accepts Keycloak tokens and finds users by firebase_uid.
- 4
Tell your users
Announce the date, the new password by email link, and that phone-only sign-in changes if you used it.
- 5
Cut over
Stop sign-ups, export again, import, release the app versions that use Keycloak, and send the set-password emails in batches.
- 6
Keep a way back
Keep the Firebase project’s authentication unchanged until you sign the move off. Mobile apps need a released version that can switch back.
It depends, and on what
We do not give a length without seeing what you run. These are the things that set it.
- How many mobile app releases the switch needs, and app store review times
- How many services verify Firebase ID tokens today
- How many users sign in by phone only, who need another way in
- How many applications sign users in, and how many redirect URIs and token claims each needs
- How many social and enterprise identity providers you use, and how quickly each approves a new redirect URI
- How much notice your users need before the switch
- How many people on your side test the dry run, and when
What each plan includes for a move
Support is in writing, through the dashboard and the contact form. There are no calls and no demos.
You move, with our tools and guides
We- Your cluster, ready before you import
- Free converters, a readiness checklist and email templates
- A guide for your source in the docs
- Answers in writing, first response the next business day
- Export from your current system
- Convert and import into a second realm as a dry run (Starter has two)
- Write to your users and switch your apps
We do the move with you, in the plan’s service hours
We- Plan the move with you from your inventory
- Convert users and re-create clients and identity providers
- Import into a staging copy and fix what the dry run finds
- Import into your cluster at cut-over and watch the first hours
- Uses the plan’s 10 service hours a month
- Export from your current system and hand it over encrypted
- Test the dry run with your own apps
- Send the emails to your users and switch your apps
Very large moves, scoped with you
We- Many realms, very many users, or a long period with both systems running
- Scope, sizing and price agreed in writing
- Tell us what you run through the contact form
Prices and the service hours each plan includes are on the pricing page. A move larger than the plan’s hours is scoped with you as Custom.
Tools for this move
They run in your browser; nothing you paste is sent to us. The Firebase Authentication guide in the docs has the commands.
Firebase to Keycloak users converter
Turn the JSON from firebase auth:export into Keycloak users, with custom claims as attributes and no password hashes. Runs in your browser.
Open Free toolMigration readiness checklist
A checklist for moving users to Keycloak from Auth0, Okta, Cognito, Azure AD B2C, Firebase or another Keycloak: export, map, dry run, cut-over and rollback.
Open Free toolMigration email templates
Write the emails you send your own users before the move, on the day and after it, including how they set a new password.
Open Free toolJWT decoder
Paste a JWT to read its header, claims and signature, with times shown as dates. Runs in your browser.
OpenAbout moving from Firebase Authentication
Can my Firebase users keep their passwords?
Not today. Firebase uses a modified scrypt and Keycloak ships no provider for it, so users set a new password by email link. We are evaluating an scrypt provider, with no date.
How do I export users from Firebase?
With firebase auth:export users.json --format=json. The JSON keeps providers and custom claims whole.
What happens to custom claims?
They become Keycloak attributes, and the claim you name becomes groups. Mappers put them back into tokens.
Do Google and Apple users need a new password?
No. They sign in with the same provider and confirm the link to their account once.
What about users who sign in by phone?
Keycloak has no built-in SMS sign-in. Ask those users for an email address before the move, or plan another sign-in method.
Do my mobile apps need changes?
Yes. They switch from the Firebase Auth SDK to OpenID Connect against Keycloak, usually with an AppAuth library and PKCE.
How long does a move from Firebase take?
It depends on app releases, the services that verify tokens and your users’ notice period. We do not give a number without seeing what you run.
Who does the work?
On Premium and Enterprise we do the move with you, within the plan’s 10 service hours a month. On Starter you move with our free tools and guides.
Where the facts on this page come from
Read on 25 November 2026. Vendors change their products: if one of these has, tell us through the contact form and we will correct this page.
Moving from somewhere else
From Auth0
Users, metadata, social logins and apps move. Passwords are set again by email link.
Read the plan New password by email linkFrom Okta
Users, profile attributes, groups and apps move. Passwords are set again by email link.
Read the plan New password by email linkFrom Amazon Cognito
Users, attributes and groups move. Passwords are set again by email link.
Read the plan New password by email linkFrom Azure AD B2C or Entra External ID
Users, sign-in names and extension attributes move. Passwords are set again by email link.
Read the plan Passwords keptFrom your own Keycloak or Red Hat SSO
Realms move whole, with password hashes and keys. Users keep their passwords.
Read the plan Kept with a full exportFrom another Keycloak host
With a full export, realms move whole and users keep their passwords.
Read the planReady to move?
Order a cluster, or write to us first about what you run today.