Creating a Test USA Driver’s license#

If you don’t have a real USA driver’s license, you can create a test version specifically for testing this service.

Use the instructions below to generate a realistic-looking test driver’s license.

Important: The test driver licenses created with this guide are intended for testing purposes only. Do not use them for any other purpose or in production environments.


How to Create a Test Driver’s license#

In this guide, let’s consider two examples of US Driver’s licenses, two different states:

  1. PENNSYLVANIA

  2. DELAWARE

You can use any of them, it doesn’t matter for testing purposes.

1) PENNSYLVANIA SAMPLE#

  1. To take a sample of the front-side, use this source link

  2. To take a sample of the back-side, use this source link

  3. To create a valid test front side of a driving license, you should replace your photo instead of the existing photo on the front side.

  4. To create a valid test back side, you should create a correct barcode, which matches the data from the front side of the driving license.

    @
    ANSI 636026080102DL00410288ZA03290015DL
    DAQA1234567
    DCSSAMPLE
    DACANDREW JASON
    DADJ
    DBB01071973
    DBA03152030
    DBD03152022
    DBC1
    DAU5-11
    DAG742 EVERGREEN TERRACE
    DAILOS ANGELES
    DAJCA
    DAK90017
    DAZBRN
    DCAC
    DCBNONE
    DCDNONE
    

    Use this data for creating a barcode and any site that can create a PDF417 code - for example this. After this, you’ll take an image of the barcode.

  5. After that, you should replace the wrong barcode with the valid barcode that you generated in the previous step.

  6. After these steps, you will have a valid front side photo with your face and a valid back side photo.

2) DELAWARE SAMPLE#

  1. To take a sample of the front-side and back-side, use this source link You should download the PDF using this link. This PDF includes blanks for our purposes.

  2. To create a valid test front side of a driving license, you should replace your photo instead of the existing photo on the front side.

  3. To create a valid test back side, you should create a correct barcode, which matches the data from the front side of the driving license.

    @
    ANSI 636026080102DL00410288ZA03290015DL
    DAQA1234567
    DCSSAMPLE
    DACJANICE
    DADNONE
    DBB04301970
    DBA08042023
    DBD10052015
    DBC2
    DAU5-11
    DAG742 EVERGREEN TERRACE
    DAILOS ANGELES
    DAJCA
    DAK90017
    DAZBRN
    DCAC
    DCBNONE
    DCDNONE
    

    Use this data for creating a barcode and any site that can create a PDF417 code - for example this. After this, you’ll take an image of the barcode.

  4. After that, you should replace the wrong barcode with the valid barcode that you generated in the previous step.

  5. After these steps, you will have a valid front side photo with your face and a valid back side photo.