Overview
What Unicode Inspector does
Iterates by Unicode scalar rather than UTF-16 code unit and labels spaces, tabs, and line breaks so invisible characters remain understandable.
| Category | Developer Tools |
|---|---|
| Action type | JavaScript |
| Result | Copy the result |
| Internet | Not required |
Example
Action and outcome
| Action | Outcome |
|---|---|
| Unicode InspectorSelected text: A 👋 | U+0041 A U+0020 SPACE U+1F44B 👋 |
Workflow
Use Unicode Inspector
Follow these steps to show every selected Unicode code point with ActionClip.
- Select the text you want to use.
- Choose Unicode Inspector from ActionClip.
- Review the result, then copy it where you need it.
Before you add it
Requirements and privacy
- Before you start: No setup required.
- Your selected text: Runs locally in ActionClip’s JavaScript sandbox. Selected text does not leave your Mac.
Inspect before installing
Action configuration
The definition below is included so you can inspect how the action works before downloading it.
JavaScript definition
function run(selected_text) {
if (!selected_text) return "No characters selected.";
return Array.from(selected_text).map((character) => {
const value = character.codePointAt(0);
const code = "U+" + value.toString(16).toUpperCase().padStart(4, "0");
let label = character;
if (character === " ") label = "SPACE";
else if (character === "\n") label = "LINE FEED";
else if (character === "\r") label = "CARRIAGE RETURN";
else if (character === "\t") label = "TAB";
return code + " " + label;
}).join("\n");
}