The developer tools you reach for every day, all in one place.

Converters, formatters, hashes, validators, and the small utilities you keep reopening stay together instead of getting lost across tabs.

GitHub

/ Tools

/ Tool Finder
109 tools
/ Unicode Escape Encoder

JavaScript (\uXXXX)

/ Selected Tool

Unicode Escape Encoder

Convert text to and from Unicode escape sequences

01

What are Unicode Escape Sequences?

Unicode escape sequences are a way to represent Unicode characters using ASCII characters. They are commonly used in programming languages and markup languages to include special characters that might not be directly ty…

02

How does it work?

Supported Formats JavaScript: Uses \uXXXX for BMP characters. Surrogate pairs for characters above U+FFFF. Python: Uses \uXXXX for BMP and \UXXXXXXXX for extended characters. CSS: Uses \XXXX followed by a space. HTML: U…

03

Sample Cases

Covers JavaScript format, HTML entities, and CSS escapes so you can compare common inputs and outputs quickly.

/ Code

/ Integration

Source code from the selected tool, shown here alongside the live version on the right.

/ Source Code
TypeScript
typescript
// Unicode escape encoding in different formats

function toJavaScriptEscape(text: string): string {
  return Array.from(text)
    .map(char => {
      const cp = char.codePointAt(0)!;
      if (cp <= 0xFFFF) {
        return `\\u${cp.toString(16).padStart(4, '0')}`;
      }
      // Surrogate pairs for characters outside BMP
Buidl Now icon

Keep every utility in one place and stay inside the build flow.

Pick a tool, finish the check, copy what you need, and get back to the actual product work.

Developer tools for builders who ship fast.© 2026 Buidl Now. All rights reserved.