I recommend using this page ↗ because it uses the latest version. Thank you!

Generate URL for PHP-Badges

This tool generates a URL for the PHP Script. You can use this URL to create a badge for your project.

This project is open source and you can even host yourself . Click here to visit the GitHub repository and learn more.


#

Preview:

Please click the generate button to get a preview

Generated URL:

IMG Tag:

Custom Image redirect URL

This is the URL that the image will redirect to when clicked (only applies to the IMG Tag)



Decode URL

FAQ

This is a tool to generate a URL that redirects to a badge image. You can use this to create badges for your projects.

  1. Fill in the form
  2. Click the generate button
  3. Copy the generated URL or IMG Tag
  4. Use the URL in your project

  • Label: The text that will be displayed at the left side of the badge
  • Message: The text that will be displayed at the right side of the badge
  • Message Box Color: The color of the message box

  • Badges for your projects
  • Badges for your GitHub profile
  • Badges for your website

Simply generate a badge and use the generated URL or IMG Tag in your project.

    Format & Scale

  • Format: The format of the badge image
  • Scale: The scale of the badge image
  • Resize Output: Whether the badge image should be resized to 20px in height. This is useful if you want to use the badge when you cannot use the IMG Tag.
  • Image Tag will always be 20px high: Whether the IMG Tag should always be 20px high. If this is disabled, the IMG Tag will be the same height as the badge image (wich can be resized using the scale option).
  • Align Badge: Whether the badge should be aligned with the text or other badges. Only works when using the IMG Tag.
  • Font Color

  • Auto Font Color: Whether the font color should be automatically calculated based on the background color. Could be either black or white.
  • Font Color: The font color of the badge. Only used if auto font color is disabled.
  • Alt Text

  • Automatically generate alt text: Just as the name says, this option automatically generates alt text for the badge image tag based on the label and message.
  • Alt Text: The alt text of the badge image tag. Only used if auto alt text is disabled.
  • Other

  • Save everything to URL: Whether ALL options (even the ones not used in the form) should be saved to the URL. Please note that this will make the URL very long.

The beta option is used to enable beta features. Here are the current beta features: (updated 2023-01-25)

To use the beta features, you need to enable the beta option in the advanced options.

  • Font Awesome icons - You can now use Font Awesome icons in the label of the badge. To use an icon, simply enter the fa-icon code (e.g. f09b) in the field next to the label. Please note that for now only free brand icons are supported.
  • Cache - Use this option to enable caching. This will make the badge image load faster. If disabled the default caching time of 5 seconds will be used.
  • HTTP Image description - Automatically generate a HTTP content description for the badge image. Note: This option is being tested and cannot be disabled yet.

For more information please visit the official PHP-Badges Wiki