Unicode Converter
Convert characters between different Unicode formats including HTML entities, hex codes, decimal codes, JavaScript escapes, and more.
Unicode Escape Sequences: Unicode escape sequences (\uE200, \u00A9)
Characters: Enter any text or characters
Examples & Use Cases
Whitespace Preservation
How whitespace is handled:
This converter preserves all whitespace characters (spaces, tabs, line breaks, carriage returns) when converting between formats. This means:
- Spaces → Remain as actual spaces in the output
- Line breaks (\n) → Remain as actual line breaks in the output
- Tabs (\t) → Remain as actual tabs in the output
- Carriage returns (\r) → Remain as actual carriage returns in the output
Note: While URL encoding will encode newlines as %0A and spaces as %20, these are preserved as actual whitespace characters when swapping formats, maintaining the original text structure.
HTML Entity Examples
Common HTML Entities:
- "Hello World" → "Hello World"
- <div> → <div>
- & symbol → & symbol
- © 2024 → © 2024
Unicode Code Examples
Character to Code Conversions:
- A → U+0041 (hex) → 65 (decimal)
- € → U+20AC (hex) → 8364 (decimal)
- 😀 → U+1F600 (hex) → 128512 (decimal)
- 中 → U+4E2D (hex) → 20013 (decimal)
Unicode Escape Sequence Examples
Unicode Escape Sequences (JavaScript/Minecraft):
- "Hello" → \"Hello\"
- New line → \n
- Tab → \t
- © → \u00A9
- € → \u20AC
- ♥ → \u2665
- Minecraft Private Use → \uE200
Common Use Cases
- Web Development: Convert special characters to HTML entities for safe display
- Programming: Escape strings for JavaScript, CSS, or other languages
- Minecraft Resource Packs: Convert \uE200 format from resource packs to characters for use in chat
- Minecraft Testing: Use this command with converted characters:
/tellraw @a {"text":"SYMBOL_IN_UNICODE","font":"FONT"}
- URL Encoding: Encode text for safe use in URLs and query parameters
- Data Processing: Convert between different text encodings for data import/export
- Debugging: Inspect Unicode code points and byte sequences