SVG Formatter is a Drupal 8 module that provides support for using SVG images on your website. It does so by providing a field formatter for the file field type.
I created this module almost three years ago, and it is now used by around 1800 websites.
The module is Drupal 9 ready, and today I released a new version (1.10) which comes with the Token support for generating alt and title attributes, and we finally have test coverage.
To find out how to use the module, check out my blog post Drupal 8 and SVG images or watch the following screencast.