1. Home
  2. Free tools
  3. Version code

Free tool · runs in your browser

Android version code generator

Every update needs a higher version code than the last, or it won't install. Pick a scheme once, and this generator turns any version name into the right number.

How to use it

  1. Enter the version name. Type the version users will see, like 1.4.2.
  2. Set the build number. Use 1 for the first build of the day; raise it for rebuilds.
  3. Compare with the last release. Optionally enter the previous versionCode to confirm the new one is higher.
  4. Copy. Copy the versionCode for the scheme you use, or the build.gradle lines.

versionName vs versionCode

versionNameversionCode
Example1.4.210402
Shown to usersYesNo
TypeAny textWhole number, max 2,100,000,000
Decides if an update installsNoYes — it must be higher

Which scheme to choose

  • Semantic (1.4.2 → 10402): easy to read back. Keep minor and patch under 100.
  • Semantic + build (1.4.2 build 3 → 1040203): lets you rebuild the same version.
  • Date-based (YYMMDD + build): always increases, no thinking — but the code no longer tells you the version.

Whatever you choose, never go backwards: once a code is used on Google Play, every later upload must be higher. Check what an existing APK uses with APK info online.

Private by design: everything runs on your device. Nothing you type or upload here is sent to a server.

Try it now — it's free

No watermark, no card, no Android Studio. Pick what you're starting from:

Questions people ask

What is versionCode in Android?

A whole number that identifies each build. Android only installs an update if its versionCode is higher than the installed one.

What is the maximum versionCode?

Google Play accepts version codes up to 2,100,000,000.

Does versionName have to match versionCode?

No. versionName is free text shown to users; versionCode is the number Android compares. Schemes just make them easy to keep in step.