diff --git a/rio_cogeo/profiles.py b/rio_cogeo/profiles.py
index 9a91747..15e7c9f 100644
--- a/rio_cogeo/profiles.py
+++ b/rio_cogeo/profiles.py
@@ -174,6 +174,7 @@ class COGProfiles(dict):
 
     def get(self, key):
         """Like normal item access but error."""
+        key = key.lower()
         if key not in (self.keys()):
             raise KeyError("{} is not a valid COG profile name".format(key))
 
diff --git a/rio_cogeo/scripts/cli.py b/rio_cogeo/scripts/cli.py
index 9b1e486..f28b102 100644
--- a/rio_cogeo/scripts/cli.py
+++ b/rio_cogeo/scripts/cli.py
@@ -83,7 +83,7 @@ def cogeo():
     "--cog-profile",
     "-p",
     "cogeo_profile",
-    type=click.Choice(cog_profiles.keys()),
+    type=click.Choice(cog_profiles.keys(), case_sensitive=False),
     default="deflate",
     help="CloudOptimized GeoTIFF profile (default: deflate).",
 )

set  case_insensitive=True on the click.option
```
Error: Invalid value for '--cog-profile' / '-p': invalid choice: WEBP. (choose from jpeg, webp, zstd, lzw, deflate, packbits, lzma, lerc, lerc_deflate, lerc_zstd, raw)
```

cc @kylebarron
diff --git a/tests/test_cli.py b/tests/test_cli.py
index 5e87e19..819e345 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -458,3 +458,16 @@ def test_cogeo_validate(runner):
         assert "is NOT a valid cloud optimized GeoTIFF" in result.output
         assert not result.exception
         assert result.exit_code == 0
+
+
+def test_cogeo_validUpercaseProfile(monkeypatch, runner):
+    """Should work as expected."""
+    with runner.isolated_filesystem():
+        result = runner.invoke(
+            cogeo,
+            ["create", raster_path_rgb, "output.tif", "--cog-profile", "DEFLATE"],
+        )
+        assert not result.exception
+        assert result.exit_code == 0
+        with rasterio.open("output.tif") as src:
+            assert src.compression.value == "DEFLATE"
diff --git a/tests/test_profile.py b/tests/test_profile.py
index 1aa567a..a4c40ed 100644
--- a/tests/test_profile.py
+++ b/tests/test_profile.py
@@ -15,6 +15,9 @@ def test_profiles_jpeg():
     assert profile["photometric"] == "YCbCr"
     assert profile["interleave"] == "pixel"
 
+    profile = cog_profiles.get("JPEG")
+    assert profile["compress"] == "JPEG"
+
 
 def test_profiles_webp():
     """Should work as expected (return webp profile)."""

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest pytest-cov
3.7
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
affine==2.4.0
annotated-types==0.5.0
attrs==24.2.0
boto3==1.33.13
botocore==1.33.13
certifi @ file:///croot/certifi_1671487769961/work/certifi
cfgv==3.3.1
charset-normalizer==3.4.1
click==8.1.8
click-plugins==1.1.1
cligj==0.7.2
cogdumper==1.1.0
coverage==7.2.7
distlib==0.3.9
exceptiongroup==1.2.2
filelock==3.12.2
identify==2.5.24
idna==3.10
importlib-metadata==6.7.0
importlib-resources==5.12.0
iniconfig==2.0.0
jmespath==1.0.1
mercantile==1.2.1
morecantile==2.1.4
nodeenv==1.9.1
numexpr==2.8.6
numpy==1.21.6
packaging==24.0
platformdirs==4.0.0
pluggy==1.2.0
pre-commit==2.21.0
pydantic==2.5.3
pydantic_core==2.14.6
pyparsing==3.1.4
pystac==1.5.0
pytest==7.4.4
pytest-cov==4.1.0
python-dateutil==2.9.0.post0
PyYAML==6.0.1
rasterio==1.2.10
requests==2.31.0
-e git+https://github.com/cogeotiff/rio-cogeo.git@dac2ae36edd3b6a39645963f645218fb54aaff01#egg=rio_cogeo
rio-color==1.0.4
rio-mucho==1.0.0
rio-tiler==2.1.4
s3transfer==0.8.2
six==1.17.0
snuggs==1.4.7
supermercado==0.2.0
tomli==2.0.1
typing_extensions==4.7.1
urllib3==1.26.20
virtualenv==20.26.6
zipp==3.15.0

name: rio-cogeo
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - affine==2.4.0
      - annotated-types==0.5.0
      - attrs==24.2.0
      - boto3==1.33.13
      - botocore==1.33.13
      - cfgv==3.3.1
      - charset-normalizer==3.4.1
      - click==8.1.8
      - click-plugins==1.1.1
      - cligj==0.7.2
      - cogdumper==1.1.0
      - coverage==7.2.7
      - distlib==0.3.9
      - exceptiongroup==1.2.2
      - filelock==3.12.2
      - identify==2.5.24
      - idna==3.10
      - importlib-metadata==6.7.0
      - importlib-resources==5.12.0
      - iniconfig==2.0.0
      - jmespath==1.0.1
      - mercantile==1.2.1
      - morecantile==2.1.4
      - nodeenv==1.9.1
      - numexpr==2.8.6
      - numpy==1.21.6
      - packaging==24.0
      - platformdirs==4.0.0
      - pluggy==1.2.0
      - pre-commit==2.21.0
      - pydantic==2.5.3
      - pydantic-core==2.14.6
      - pyparsing==3.1.4
      - pystac==1.5.0
      - pytest==7.4.4
      - pytest-cov==4.1.0
      - python-dateutil==2.9.0.post0
      - pyyaml==6.0.1
      - rasterio==1.2.10
      - requests==2.31.0
      - rio-color==1.0.4
      - rio-mucho==1.0.0
      - rio-tiler==2.1.4
      - s3transfer==0.8.2
      - six==1.17.0
      - snuggs==1.4.7
      - supermercado==0.2.0
      - tomli==2.0.1
      - typing-extensions==4.7.1
      - urllib3==1.26.20
      - virtualenv==20.26.6
      - zipp==3.15.0
prefix: /opt/conda/envs/rio-cogeo

tests/test_cli.py::test_cogeo_validUpercaseProfile tests/test_profile.py::test_profiles_jpeg
tests/test_cli.py::test_cogeo_valid tests/test_cli.py::test_cogeo_overviewTilesize tests/test_cli.py::test_cogeo_validate
tests/test_cli.py::test_cogeo_valid_external_mask tests/test_cli.py::test_cogeo_validbidx tests/test_cli.py::test_cogeo_invalidbidx tests/test_cli.py::test_cogeo_invalidbidxString tests/test_cli.py::test_cogeo_invalidThread tests/test_cli.py::test_cogeo_validnodata tests/test_cli.py::test_cogeo_validGdalOptions tests/test_cli.py::test_cogeo_validOvrOption tests/test_cli.py::test_cogeo_web tests/test_cli.py::test_cogeo_validgdalBlockOption tests/test_cli.py::test_cogeo_validNodataCustom tests/test_cli.py::test_cogeo_validTempFile tests/test_cli.py::test_cogeo_validCompress tests/test_profile.py::test_profiles_webp tests/test_profile.py::test_profiles_lzw tests/test_profile.py::test_profiles_deflate tests/test_profile.py::test_profiles_packbits tests/test_profile.py::test_profiles_lzma tests/test_profile.py::test_profiles_lerc tests/test_profile.py::test_profiles_lerc_deflate tests/test_profile.py::test_profiles_lerc_zstd tests/test_profile.py::test_profiles_raw tests/test_profile.py::test_profiles_nonstandard tests/test_profile.py::test_profiles_copy tests/test_profile.py::test_profiles_error
rio_cogeo/scripts/cli.py rio_cogeo/profiles.py
rio_cogeo/scripts/cli.py rio_cogeo/profiles.py