---
title: "Convert to camelCase action for ActionClip"
canonical_url: "https://actionclip.app/actions/convert-to-camelcase"
document_type: "standalone_action"
official: true
action_count: 1
catalog_schema_version: 1
catalog_revision: "2026-08-21.1"
catalog_published_at: "2026-08-20T18:50:00Z"
---

# Convert to camelCase action for ActionClip

Convert selected words or identifiers to camelCase.

## What it does

Splits spaces, punctuation, acronym boundaries, and lower-to-upper transitions before producing a lower camel-case identifier.

## Action details

| Field | Value |
| --- | --- |
| Category | Developer Tools |
| Action type | JavaScript |
| Result | Replace or copy text |
| Internet | Not required |

## Action and outcome

| Action | Outcome |
| --- | --- |
| **Convert to camelCase** — Selected text: HTTP response code | httpResponseCode |

## How to convert selected words or identifiers to camelCase with ActionClip

1. Select the text you want to use.
2. Choose **Convert to camelCase** from ActionClip.
3. Review the result, then replace the selection or copy the new text.

## Requirements

No setup required.

## Privacy

Runs locally in ActionClip’s JavaScript sandbox. Selected text does not leave your Mac.

## Action configuration

````javascript
function run(selected_text) {
  const words = selected_text
    .normalize("NFKD")
    .replace(/\p{M}+/gu, "")
    .replace(/([A-Z\d]+)([A-Z][a-z])/g, "$1 $2")
    .replace(/([a-z\d])([A-Z])/g, "$1 $2")
    .replace(/[^\p{L}\p{N}]+/gu, " ")
    .trim()
    .split(/\s+/)
    .filter(Boolean)
    .map((word) => word.toLowerCase());

  if (!words.length) return "";
  const capitalize = (word) => word.charAt(0).toUpperCase() + word.slice(1);
  return words[0] + words.slice(1).map(capitalize).join("");
}
````

## Links

- [HTML listing](https://actionclip.app/actions/convert-to-camelcase)
- [Download action definition](https://actionclip.app/actions/convert-to-camelcase.actionclip)
- [Browse Developer Tools actions](https://actionclip.app/marketplace#marketplace-developerTools)
- [All Marketplace listings](https://actionclip.app/marketplace)
